NOTE: Vigyan Ashram is known as "Fablab 0" , it is one of the remotest labs with very minimal internet access , therefore, we have been using old version of Fab module which is an offline version.
WEEK 8
This week was very important in two ways,
To know how i milled my hello board, you can visit this page Week 6
I further started programming my Hello board with the help of ARDUINO, arduino first because im really new to programming and arduino videos seemed easier to start with.
You can Install arduino from here.
Following are the steps to program in arduino:
1. Open Arduino IDE, Go to file > Examples > Blink
2. Then I went to Tools > Selected the Port to which Arduino is connected, if you dont know which one is it you can always disconnect and reconnect and then check which port is your arduino connected to.
3. Now go to Sketch > Include librares > Manage Libraries, we will be uploading our code on attiny 44 IC on the hello board, so we need to have libraries for the same, you can install for any board or IC like this.
4. You can additionally add libraries by adding URL for that Go to File > Preferences and fill url next to option add additional Libraries
5. Board Manager updates all the libraries
6.Also, you can add like i added attiny 44
7. Here it is , I will select this attiny 44 whenever i have to program my board with IC attiny 44
8. Clock stays as 1 Mhz
Lets move next to programming after installing Arduino and its libraries.
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(PA3, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(PA3, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(PA3, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(PA3, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(100); // wait for a second
digitalWrite(PA3, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(PA3, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(PA3, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(100); // wait for a second
digitalWrite(PA3, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(PA3, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
}
Then I tried programming my Hello board with My Fab ISP
Following are the steps involved, Dont get confused with that green board im using that only for GND and VCC for power:
cd Desktop/abc //folder where my file is cd means change directory
sudo make -f hello.ftdi.44.echo.c.make
sudo make -f hello.ftdi.44.echo.c.make program-usbtiny-fuses