Input device
this week assignement are:
- Measure something: add a sensor to a microcontroller board that you have designed and read it.
Choosing the flex sensor
for this week project i decided to use a flex sensor (here the datasheet), it's a resistor, it will change the value from the bending i will give to it.
So for Using it you have to use to make a voltage divider circuit it's pretty simple to do.
When you understood how to make it you can start to make your new board.
i looked at the documentation of the Echo Hello board for a starting point, of my new board, i removed the button and use the same pin for implemant the Flex Resistor, i add an other resistor for makig the voltage divider too.
Making your schematics




the code
When the board is finish we have to upload the code to it.
for that i'm using an arduino as an ISP. it's working great.
- Pin13(arduino) to SCK
- pin12 (arduino) to MISO
- Pin11(arduino) to MOSI
- Pin 10(arduino) to RESET
- 5V to VCC
- Gnd TO Gnd
GO on file> example>arduinoISP
Upload the file into your arduino. then choose the Attiny 44 into the board manager, choose the internal clock to 8Mhz, change the programmer to Arduino as isp.


file of the week.
here you'll find the file of the week
For downloading
right click and save as
- Brd file (Eagle board file)
- sch file (Eagle Schematic file)
- Ino file (Arduino code)