April 29, 2024

Namaste Parents,

This week we discussed how Atoms are structured and how electrons play a very important role in computers. The flow of electrons and how to take advantage is a major study but we have to understand the basics in order to better appreciate the overall working of a computer or an IOT device.

We also saw an overview of the Arduino micro controller and what can be achieved with it.

Our students were able to connect the micro controller to a computer, use the Arduino IDE and start coding. As a first program we controlled the builtin led and made it to blink for the duration of any given number of seconds.

Next week we will look at resistors, diodes, LEDs and Ultrasonic sound sensor.

1) We will create a circuit for external LEDs and make it blink.

2) We will create a circuit for Ultrasonic sound sensor and measure the distance of any object near it.

Week 1 Circuit:

No circuit for week 1.

Week 1 Code:

LED Blink:

void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
delay(1000);                       // wait for a second
digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
delay(1000);                       // wait for a second
}

Further reading:

Structure of the code:

https://www.arduino.cc/reference/en/language/structure/sketch/setup/

https://www.arduino.cc/reference/en/language/structure/sketch/loop/

Lesson 1

https://www.arduino.cc/en/tutorial/blink