Project:Mini Traffic Lights: Difference between revisions

From London Hackspace Wiki

no edit summary
No edit summary
No edit summary
 
Line 17: Line 17:
* Minimus
* Minimus
* Laser cut case
* Laser cut case
* 3mm MDF
* 3mm MDF / acrylic
* 2 x 12mm M3
* 2 x 12mm M3
* 2 x M3 nut
* 2 x M3 nut
* Wire
* Wire
* Tube
* 8mm kite Tube
 
* 6 x 5mm leds (2 x red, 2 x orange, 2 x green)
* 6 x 5mm led bezels
* 6 x 330 Ohm resisters
* Superglue




Line 30: Line 33:
== Example Computer Code ==
== Example Computer Code ==
<to be released>
<to be released>
== Linux uDev Non-root User Magic ==
<to be released>
== Operating System Specific ==
Linux:
Firstly make sure minicom is installed.  "sudo apt-get install minicom" or "sudo yum install minicom"
ls -latr /dev/|grep -i tty  (it will typically be dev/ttyACM*)
vim ~/.minirc.dfl
  pu port            /dev/ttyACM0
  pu baudrate        38400
  pu minit
  pu mreset
This will setup minicom with the correct settings.  Change /dev/ttyACM0 to whatever was discovered in dmesg.
minicom
OSX:
ls -latr /dev/|grep -i tty  (it will typically be dev/ttys0.usbmodem*)
screen /dev/ttys0.usbmodem1234 38400  (by default it sets 8N1)
to exit the terminal: Ctrl-A Ctrl-K Y <enter>
Windows:
The easiest way is to use putty and connect to the specific comport which can be discovered in Device Manager.  Have it set to 38400 8N1
== Files ==
Windows Drivers
MCU binary flash




== Gallery ==
<gallery caption="Prototype v1 Made from MDF">
<gallery caption="Prototype v1 Made from MDF">
File:Mini_traffic_light_1.jpg
File:Mini_traffic_light_1.jpg