Skip to content
Snippets Groups Projects
Commit 6be5150d authored by Louise Massacrier's avatar Louise Massacrier
Browse files

Update docs/Assignments/week13.md, docs/images/week13/w13-attiny00.001.jpeg

parent 28d9c566
Branches
No related tags found
No related merge requests found
Pipeline #358844 passed
......@@ -8,9 +8,23 @@
## **ATTINY**
This week, we learnt how to use the ATtiny with the tutorial of Emma.
This week, we learnt how to use the ATtiny with the tutorial of Emma. *The schematics below are from her slides*
| with Arduino | with Arduino | on its own (after uploading the sketch) |
**Components** : Arduino Uno, Bread Board, 10 μF Capacitor, wires, AT TINY 45/85
1. **Install the Board Manager** for your AT tiny : copy paste this link into Parameters > additional board manager URLs : https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
2. **Download the library** : Tools > Board > Board Manager > Research Library > ATtiny by David > Install library
3. **Set up the Arduino as an ISP** (programmer) : File > Example > ArduinoISP and upload the file to your Arduino (which is not connected to anything else !)
4. **Circuit** connect components as seen on schematics
5. If it is the first time you are using your ATtiny 45/85, you have to **Burn Bootloader**
6. **Circuit** Connect the other components of your circuit, for example your LED and 220 ohms resistor
7. **Upload sketch** to the ATtiny : Open sketch > Make sure the pin correspond to the Attiny pins > Sketch > Upload using Programmer. If it worked you should see your circuit working following the sketch. If not check your connections
8. **Try the circuit without the Arduino**
![attiny85](../images/week13/w13-attiny00.001.jpeg)
*Schematics by Emma Pareschi*
| Blink LED after programming | with Arduino&digital sensor 1 | with arduino&digital sensor 2 |
| - | - | - |
| attiny_led.ino | attiny_led_digitalsensor_1.ino | attiny_led_digitalsensor_2.ino |
| <iframe src="https://giphy.com/embed/sdmxfoE3BNaxzl1UdU" width="270" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/sdmxfoE3BNaxzl1UdU">via GIPHY</a></p> | <iframe src="https://giphy.com/embed/PLzqIWvjKO2swk6W9j" width="270" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/PLzqIWvjKO2swk6W9j">via GIPHY</a></p> | <iframe src="https://giphy.com/embed/i1Q7hCbzpg4DBPTyVm" width="270" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/i1Q7hCbzpg4DBPTyVm">via GIPHY</a></p> |
......@@ -29,7 +43,7 @@ Here is what I had when connecting the matrix to Arduino (Serial Plotter) and us
Then, I connected it using Processing software. When using processing I struggled to find the right serial port. It was telling me the port was busy with a JBL GO or a Iphone despite the fact that I hadn't any of those with me... I checked on the port number of the USB modem on Arduino and it was the 7th ! so I just add this number on the line : String portName = Serial.list()[**7**]; aaand it worked ! Happy me :)
**Note** You can have a look at how many ports your computer have register in arduino > Tools > Port. The first port of the list is the number 0.
**Note** You can have a look at how many ports your computer have register in arduino > Tools > Port. Then try with all the numbers, depending on the computers/versions the counting system is not the same (start from top or bottom). Also remember that the first port is number 0 and the second number 1, etc...
<iframe src="https://giphy.com/embed/wHQrgIW1RpblpiLd8k" width="480" height="232" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/wHQrgIW1RpblpiLd8k">via GIPHY</a></p>
......
docs/images/week13/w13-attiny00.001.jpeg

424 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment