INPUT DEVICES
WEEK 11
Task:
Measure something> add a sensor to microcontroller board that you have designed and read it
Tools and equipment:
Software:
Temp Sensor
A thermistor is a resistive temperature sensor. Its operation is based on the variation of resistivity semiconductor with temperature. The term comes from thermistor temperature sensitive resistor. Two types of thermistor :
Componets:
Datasheet
ATtiny45/ATtiny85 microcontroller is small and cheap that can run simple programs. The only disadvantage is that it has low memory to program many functions.
Analog signal
An analog signal is a voltage or current which varies smoothly and continuously . A sine wave is an analog signal of a single frequency. Voltages voice and video are analog signals that vary according to the sound or variations of light corresponding to the information being transmitted .
Digital signal
Digital signals , in contrast to analog signals do not vary continuously, but change in steps or in discrete increments . Most digital signals use binary or two state codes.
Screenshot of the temp board
Follow the making of the pcb board milling and welding process in this week (week 04)
Programming
Connect the AVRISP mkII to the hello.temp.45 board and FTDI cable (5V), the AVRISP who writes the data on the temp board and the FTDI cable is used used as a transmitter of data to the computer and as a power supply.
Open the terminal in ubuntu and write the code for flash the hello board.
Ready for flash the hello.temp.45.make, then download the hello.temp.45.make code
sudo make -f hello.light.45.make program-avrisp2
Screenshot of the flash verified
Open the terminal in ubuntu
Ready to run the python code for test the temp board, then download the hello.temp.45.py code
python hello.temp.45.py /dev/ttyUSB0
After to run the python code in ubuntu, the computer freeze, so for fixed it I made a test with a multimeter and the board has some welding problems FTDI connectors pins so I weld each componetn again for made a new test.
Learning outcomes
Have you
Download files
Copyright © Jorge Huang Li - FAB ACADEMY 2016