Input Devices

Page 1

FAB ACADEMY 2012 FĂŠlix Libio

Input Devices measure something: add a sensor to a microcontroller board and read it


Electronics Board For this part use the files Traces and Interior, work is done in the modela and proceed to solder, the only observation is in photoresistor because it has an orientation.


welded card


Programming in ubuntu For programming the boards I downloaded all the necessary files in one folder and followed the procedure with the commands for the light board. The procedure is the same for the other boards. sudo make -f hello.light.45.make, for compile C file (I used this command in the terminal) sudo make -f hello.light.45.make program-usbtiny, for flashing using make avrdude -p t45 -c usbtiny -U flash:w:hello.light.45.c.hex, for flashing the board using avrdude (I also used this one)


The steps to install python-tk in windows xp, w7, for Python 2.7.2

1.

Install (ActiveTcl) http://www.activestate.com/activetcl/activetcl-8-6 ActiveTcl8.5.11.1.295590-win32-ix86-threaded

2. Install (ActivePython) http://www.activestate.com/activepython-3 ActivePython-2.7.2.5-win32-x86 3. Install (Active Serial) http://sourceforge.net/projects/pyserial/ pyserial-2.5.win32

The first two are for Python-tk and the last is for Python-serial, also needs to function. install the 32 bit version, if your computer is 64 bit

• This has been done to Jesus Fabian and Henry Medina.


1. open terminal – cmd-

2. Windows terminal


3. check port

4. invoke python Python hello.light.45.py COM22



Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.