Saturday, December 5, 2015

Robot Parts ..... You are tearing me apart

One of my favourite hobbies is to tear stuff apart ... to see how it worked ... and to obtain interesting parts    I also find it easier to repair some items if I cut an access hole in them ...rather then ferret out the hidden fasteners designers use.

Tools to use
Wear gloves and googles, wear a long sleeeved shirt and long pants.  While tearing stuff apart one does not want to disassemble one's own body parts.  I once got a sliver in my eye .... wowser ... did that hurt.  Hot plastic and metal can flip in the air.  Cannabilizing devices can be make quite a mess... so don't do it on mum's favourite table.

A variable speed dremel can be quite handy to saw through plastic and metal.  Slower speeds on electric tools is generally safer.

Printers Scanners
Printers have great parts in them ... gears , motors , shafts , bearings , power supplies
Here are some photos
Scanners have great parts for starting a #D printer project.  They have optics as well... mirrors, lenses
VCRS
VCRs have all sorts of weird mechanical assemblies
Floppy Drives , Hard Drives
Hard Drives have great magnets in them ( NeoDymium )
Floppy Drives have motors , gears , sensors, .......




Suggestions
CowBasic


Ideas for the Future

== gather some ( salvage ) common robotic electronics and dissect them
      printers
      hard drive

== demonstrate common elements of robots
make a kit
motors
screw positioner
sensors
gears
== put together video of robots in action 
       long on action… short on words
tree climbing
      quadracopter
sea going   diving

== simulation software
gears

==  

tags:   777DIY  777teardown   777URtearingMeApart   777education   777robotics

Tuesday, December 1, 2015

OSHW Laptop developed by Olimex

Olimex is working on an Open Source Laptop ( FLOSS ) that will allow DIY development of a laptop.








tags:   777OSHWLaptop    777Olimex   777DIY

Saturday, November 21, 2015

Fighting Crime using tech to trip up criminals

Here i am focusing on property theft... a very annoying behaviour humans indulge in ....

Overview
I am interested in making theft less profitable.  I want to dissuade a thief from continuing her craft.  I am not interested in capturing, incarcerating , punishing crooks.  I think those efforts largely fail.  If they worked then America with the largest population in prison would have no theft.

One possibility is to use honeypots .... this is a lure to identify theft-prone individuals.  The lure has a trigger and a camera or other recording devices.  Now we know who is theft prone.

Hiding articles from a thief works well.  Most crooks "case" a location before making a move.  If no goodies are to be seen, the thief moves on.  Of course , this means someone other than you suffers a theft.

Making a thief uncomfortable can work.  Loud sirens , voices out of no-where , stinkbombs , fake barking dogs, etc. may drive a thief away.  

In addition , a clever homeowner will want detectors that warn of Carbon Monoxide , Natural Gas , Smoke & Fire , Gushing Water ( GW ) , ......


Honeypots
Things can be left out in places where a thief will be enticed.  A good joke can be had by those luring the thief to the item.  If the item is moved illegally .... lots of fun things can occur.  A stink bomb can be activated.  The item can do something strange and alarming.   We can have lights , camera , action.
Honeypots can be placed inside, outside , in cars , .... your imagination is the limit.
Good Triggers
There are lots of nifty triggering devices that can be built from common items.

One of my favorites is the common mouse trap.  If a mouse trap is jarred , the trap snaps shut with enough energy to accomplish many things.  A stink bomb can be activated.

Putting a sugar cube between the jaws of a clothespin is a great way to detect water.  When the clothespin shuts .... it can activate an electronic switch.

Signage

Cameras
disguised cameras

fake cameras

stinkbombs
buy stink bomb prank…. trigger with mousetrap

Audio warning  Scary sounds
use cheap sound playback device

Fake Barking dogs

Lighting
Triggered security lights

Water alarm
       sugar cube and annuciator   ( can be sound, light , tweet , email , ….. next door neighbor )
       water shutoff
             dribble when on vacation
CO alarm
Carbon Monoxide alarms may come in combo with explosive gas alarms and smoke alarms ( ~$60 )
see photo at end of this article

Natural Gas alarm
Often comes in combination with a CO detector.... for ~ $60

Fire detector
Pricing runs from $10 and up

Best practices for cars
       Lock or unlock …… it depends.  I have had cars where the windows were broken multiple times by stereo thieves.  I gave up locking such cars.  I put notices in the windows advising that the doors were unlocked.  I have always wanted to stop the thief while avoiding as much thief caused damage as possible.

       discouraging the criminal from messing with a car or truck....

One option is to have a vehicle stop working a short time after the thief takes it.

Best practices for backyard and garages
    Is it better to have high fences, short fences, no fences ?

Best practices for delivered packages
   Delivered packages should be left by a delivery person where they are safe or at least not easily visible by the public.
Clever locks   ( invisible , magnetic , ...... )
   Locking devices can be made that are easy for the owner to operate and very hard for the thief to operate.  One scheme is to have hidden locks with unusual keys.
   magnets

Motion Sensors
PIR    Pyro Infrared   cost $9 and up


Walk by Inspections by Neighbors

Using cheap Android Tablets

Magnets
NeoDymium magnets are probably the strongest magnets you can buy.  They can be salvaged from discarded hard drives ( one of my favorite activities ).  You can buy them online.  They are kind of hard to find locally.... usually because they are mis-identified.
Another fun magnet type is Hematite.  Not as strong as Neodymium but very pretty.


Magnets can be used to trigger a switch if an item is moved.  This can be done using a reed switch.  A reed switch closes in the presence of a strong enough magnetic field.


===========================
tags:   777CrimeFighter   777Theft    777honeypot   777stinkbomb  777locks  777crime   777safety



Saturday, November 14, 2015

Great Cow Basic

From: Chris Roper <caroper@gmail.com>
Subject: Re: [OT] Robots as an educational tool for kids
Date: 2015m11d 13 at 13:02:32 MST
To: "Microcontroller discussion list - Public." <piclist@mit.edu>
Reply-To: "Microcontroller discussion list - Public." <piclist@mit.edu>

It may be worth having a look at Great Cow BASIC, It can program most if
not all the PIC 10/12/16/18 Devices as well as some AVR Devices, has a nice
IDE that is easy to use and generates more efficient code than XC8 in my
limited experience. It also has a graphical programming tool specifically
for kids and a decent text compiler / Assembler for more mainstream
applications. Free and Opensource. I am seriously considering it as a
teaching tool for all skill levels as well as having developed a couple of
simple applications with it (An alarm System for my apartment and an
automated test rig for a PIC32 Based production board)

Here are some links to have a look at:
http://gcbasic.sourceforge.net/
http://www.greatcowbasic.com/


How to buy
http://www.howtronics.com/CHIPINO_c_11.html

I have no business relationship to this product
=============================
Tags:   777BasicLang   777GreatCowBasic  777Basic
      author/editor :  99guspuppet

Gear play info about gears


http://www.sdp-si.com/   Stock Drive Products





worm gears can be enveloping ( hourglass ) .  the engaging gear can be enveloping as well.



Web-based gear simulation
http://www.gearsket.ch/#19572238e3552331   <===  multi-gear wrench drive
By Frank Leenaars, Department of Instructional Technology, University of Twente
Licensed under the MIT license

GearSketch lets you easily draw, connect and animate gears and chains. Best used with a touchscreen device.

desired updates to gearsketch
  #1   add ability to change gear properties ( number of teeth , color )  
  #2  optional box attached to gear , chain , shaft …..  that shows angle  ( degrees & radians ) or travel
  #3  add shaft object
  #4  add worm gear object
  #5  set play speed ( 100% <==> 1% )
  #6  add static images to simulation ( boxes , circles , text )
  #7  attach images ( sprites ) to gears & chains
  #8  add switches that detect trigger object on gear or chain

Demo hand icon by momentum (http://momentumdesignlab.com/)
-->

Frank Leenaars
F.A.J. (Frank) Leenaars, MSc.
Contact information:

Room:
Phone:
Email:
B220
0031 53 489 4492


Short bio
Frank Leenaars (1984) studied computer science (BSc) and psychology (BSc, MSc) at the University of Twente. For his master’s thesis he examined the use of self-generated drawings to facilitate the construction of formal models. He started his PhD research at the department of instructional technology in July 2009.



Research interests
Science education, inquiry learning, external representations, drawing, modeling.



PhD project
During the final years of primary education, development of scientific literacy is an important objective, for instance in the domains of geography and biology. For older students, constructing models of studied systems can be an effective way to enhance understanding of these systems. This study concerns the introduction of model construction activities to science education in primary school. The main focus will be on a representation of scientific models that is understandable and usable by students in the target population (fifth grade).


Scratch
99guspuppet   121517762013SCRATCH    version 2


SNAP



Information from gearsketch source code

Generated by CoffeeScript 1.6.3

buttons   play , clear , cloud , help

“chain" is equivalent to belt
“momentum" appears to be gear speed
penMove can be dragging ( center ) , momentum ( not-center )
“board" is a gear sketch

New gear is created
if (idealTrueAreaRatio > 0.80 && idealTrueAreaRatio < 1.20 && t > MIN_GEAR_TEETH) {


x = sumX / numberOfPoints;


y = sumY / numberOfPoints;

return new Gear(new Point(x, y), 0, t);



functions……………..
loadDemoMovements
boardUploaded

Advice about JS

 I suggest using Chrome's developer tools, it doesn't just have the console, but an element inspector, and a resource tracker (resource tracker is invaluable when working with JSON and AJAX, since invalid json will fail silently)


up vote 5 down vote
You don't need to upload the JS file to a server to test it. Just write an html and declare the js binding
<script
            src="js/yourJSFile.js"
            type="text/javascript"></script>
Edit the JS file in your favorite editor and then refresh the page to test it.
For unit testing the best option is Selenium. It allows you to record an interaction with the browser and then play it back.



==============================================
tags:  777gears               author: 99guspuppet

Tuesday, November 10, 2015

Teaching Robotics

Teaching robotics can be very fun.  Keep in mind that each student responds to different approaches and materials.  Some students are visually oriented , some are hands on , some love to read , some respond to lectures.  Allow the students as much autonomy as practicable.
Below are some preliminary ideas for introducing the subject of robots.


Dissect
 gather some ( salvage ) common robotic electronics and dissect them
       printers  ( steppers , motors , belts, slide rods , gears )
       scanners
       hard drive
       RC models .... cars, boats , drones
a salvage yard may donate some of the above
       
Elements of robots
demonstrate common elements of robots
make a kit
motors
screw positioner
sensors
gears

Action video
      put together video of robots in action 
             long on action… short on words
      tree climbing
      quadracopter
      sea going   diving
       pipecrawling
         see examples below

Robots in Film
      Iron Giant
      Lost in Space  ( best is at minute 9:00 )
      Iron Man   ( is he a robot ? )   sometimes the suit is used without a man in it
   
      poll of best robots in film

Simulations
   simulation software
    gears            http://geargenerator.com/
 
Programming
Scratch
Python
      Pyro

Development Boards that may be useful
Chipcon and GreatCowBasic


=====================================
Robots in Action



























=======================================
Suspense ......  things to follow up on
http://www.tensorflow.org/    googlized  machine intelligence
==================================================

tags:  777robotics  777education  777teachingRobotics   99guspuppet

Friday, November 6, 2015

1990 Miata engine idling problem


In this photo you can see the AFM ( air flow meter ) as the "U" shaped black spot in the center of the photo.  The black cover peels off to reveal the inner workings.  All of the airflow from the air cleaner goes through the AFM.  The air cleaner is under the AFM.

Debris is silicon sealant that I started scraping off the cover



There is a black arc the wiper travels on as AFM flap rotates.
There is a switch ( upper right ) that closes when the AFM rotates.


Below are some photos of the ECU ( engine control unit ) located under the passengers feet.















Vacuum tutorial
http://www.camaros.org/pdf/timing101.pdf


tags:   777miataEngine   777miataidling

Saturday, October 31, 2015

Dell D3100 Docking Station works great with Mac Laptop

One problem...... the two attached displays seem to blink off once and while.  This problem appears to be associated with power supplied to peripherals attached to the Dell unit.
I would recommend powered USB hubs.



Using very successfully  ..........   I love this device.

MacIntosh MacPro Laptop with USB3.0 port as link to the D3100
                  I am using OS X 10.10.5
Two HDMI displays
Ethernet cable
USB 2.0 hub   ( for isolation and to reduce connector wear )
USB mouse
USB drawing pad
Powered external speakers

I used HDMI to DVI adapter since my monitors did not accept HDMI cables.
   The adapters were $3 each from eBay.

For the Mac I had to download a driver.

If this link quits working... contact me at cinternational.com and I will try to help.

I bought this Dell unit used for $80.
I have no connection with Dell.


777D3100   #DellD3100   777DellD3100      99guspuppet

Wednesday, July 15, 2015

Photon Wireless WiFi module

arrived on 2015m07d14    Is working great so far



Kickstarter

Datasheet

How to start using Photon


=============================
tags:  777photon   #photon

Monday, July 13, 2015

ESP8266 WiFi Superstar IC CHIP


The ESP8266 was introduced around 2014.  It is a very inexpensive chip ( as little as $3) that supports WiFi. on-board processing , serial communications , GPIO , ADC , .......

Alternatives
ESP32
NL6621 from Nufront
EMW3165

AT Command Set
https://github.com/esp8266/esp8266-wiki/wiki/at_0.9.1

Datasheets
http://www.esp8266.com/
https://github.com/esp8266/esp8266-wiki/wiki/Pin-definition

ForthLang

I had found no ForthLang support as of 2015m07d13

 https://www.linkedin.com/grp/post/3385416-5947385831332343810


http://craigandheather.net/misc/ESP8266Forth.zip
              by Craig Lindley


LUA
Lua is a coding language aimed at providing a small footprint and wide range of capabilities.

 https://nodelua.org/

Mbed
https://developer.mbed.org/teams/ESP8266/

Olimex
Olimex has been at the forefront of promoting and developing FLOSS OSHW Open Source products.

https://github.com/OLIMEX/ESP8266

development board    6 euros
development board


Python
https://github.com/micropython/micropython/tree/master/esp8266
https://www.kickstarter.com/projects/214379695/micropython-on-the-esp8266-beautifully-easy-iot

Cayenne Language
http://www.cayenne-mydevices.com/docs/

Blynk
http://www.blynk.cc/
https://www.sparkfun.com/blynk
https://www.sparkfun.com/products/13794  $30



===========================================
tags:  777ESP8266   #esp8266   esp8266WFT

Friday, July 10, 2015

AtLast ForthLang




User Manual
https://www.fourmilab.ch/atlast/atlast.html

RaspberryPi Install
http://elinux.org/Forth

PEZ
Pez is based on AtLast
https://github.com/pete/pez

Pez is a small, lightweight, 100% C (for now), embeddable or standalone,
public domain, portable, highly nonstandard dialect of Forth.  It was
originally based on the Atlast system (see doc/CREDITS for more
information), but the feature set has been expanded significantly and
there are flagrant breaks with Forth compatibility.

The primary goal of the Pez project, much like the goal of the Atlast
project, is to bring dead-simple scriptability and dynamism to otherwise
static code, with a focus on user-level scripting of applications.
There are a number of compile-time options for trimming down and
limiting in the case of untrusted input, and also a large number of
OS-level facilities both added and planned.  Pez is also designed to
work well as a stand-alone language for general-purpose coding.  And
it's designed to be fun.

I highly recommend having a look at doc/historic/atlast.pdf, written by
Mr.  Walker in 1990, especially the introduction which is still
shockingly relevant now, about 20 years later.

There are a number of benefits to adding user-level scripting to an
application.  You get a free doman-specific language to expose to users
however you see fit.  You get a free configuration file parser in the
same language as your application's DSL.  You get a dynamic internal
scripting language a la LUA.  You get a safe, plain-text, cross-platform
language for communicating between your applications.  It can even be
used as a complete, full-featured standalone language.  And it's
lightweight to boot:  running on a 64-bit Linux, I'm looking at about 568k
of memory for the REPL for a full system.

Pez has added to the Atlast system a number of features:
* Portability to 64-bit platforms
* A Foreign Function Interface, for dynamically loading libraries to
  interface with system libraries.
* More complete access to standard system calls, such as fork(), exec(),
  etc.
* Regular expression support.
* Garbage collection.
* Numerous small improvements, and more large improvements on the way.  See
  doc/TODO.

I certainly hope that you find this codebase to be as useful and as much
fun as I have.

If you're a Ruby fanatic, by the way, there is also Rupez, which lets
you talk to libpez by means of the fantastic RubyFFI.  See
http://github.com/automatthew/rupez for the code.

Pete Elmore


Lina
http://home.hccnet.nl/a.w.m.van.der.horst/lina.html

==================================================
tags:  777ForthLang   777AtLast

Monday, March 23, 2015

WaveForm Generator Open IP

Here is a great KickStarter project
An OpenIP waveform generator
https://www.kickstarter.com/projects/nickjohnson/tsunami

Here are the OpenIP files at Github
Here is the PDF schematic
Useful documents have been provided about the Theory of Operation and how to use this device.

MCP4241    is a digital potentiometer
D1               does peak voltage detection
FOX924B      is an oscillator for the microprocessor   16MHz
AD9838
IC6             is an oven stabilized oscillator
CN1           is flash memory


I would like to see an expansion connector that includes
==   SCK , MOSI , MISO ,
==   Any spare I/O pins from the ATMEG processor [ IO13 ,  ]

I really like this board and I want to hack a ARM based micro onto the circuitry ..... possibly using micro-python or pharo smalltalk.


Questions:
What is CN1 ?
What are J3 and J4 for ?
Is there a BOM ?







tags:  777waveformGenerator      777Tsunami
99guspuppet

Tuesday, February 17, 2015

TOF Time of Flight Sensor VL6180

This is a fascinating sensor.  I have not been able to find out the details of how it works. It appears to use infrared light.  

There is an 80 page datasheet plus some other info.    Here is a 2 page blurb on theory.
There is an evaluation kit.
Sparkfun.com has a kit.   There are some comments at Sparkfun.
Prices are ~ $6 for chip and ~ $20 for eval board