Arduino Week 10 Lesson

We are combining Water sensor and passive buzzer. We are sounding an alarm based on water detected by the water sensor. #define c 3830 // 261 Hz #define d 3400 // 294 Hz #define e 3038 // 329 Hz #define f 2864 // 349 Hz #define g 2550 // 392…

Continue reading

Arduino Week 9 Lesson

#include <Servo.h> Servo servo; // Arduino pin numbers const int SW_pin = 2; // digital pin connected to switch output const int X_pin = 0; // analog pin connected to X output const int Y_pin = 1; // analog pin connected to Y output int servorotate = 0; int xvalue…

Continue reading

Arduino Week 8 Lesson

The circuit for this lesson is simple, we use a passive buzzer. The negative of the buzzer goes to the GND and positive goes to PIN 9 on the arduino.   int buzzerPIN = 9; #define c 261 #define d 294 #define e 329 #define f 349 #define g 392…

Continue reading

Arduino Week 7 Lesson

A simple program to read the code that is received by any Infrared remote control. #include <IRremote.h> const int RECV_PIN = 7; IRrecv irrecv(RECV_PIN); decode_results results; void setup(){ Serial.begin(9600); irrecv.enableIRIn(); irrecv.blink13(true); } void loop(){ if (irrecv.decode(&results)){ Serial.println(results.value, HEX); irrecv.resume(); } } A simple modification on this code with a if…

Continue reading

Week 6 Arudino

This is a simple sound sensor experiment. That takes a sound to turn on or turn off an LED. Here we use digital output from the sensor to measure the presence of the sound. The DO will goto pin 2 in arduino.  LED’s +ve is connected to 4.  Other circuit…

Continue reading

Ultrasonic Week 3

const int trigPin = 9; const int echoPin = 10; // defines variables long duration; int distance; void setup() { pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output pinMode(echoPin, INPUT); // Sets the echoPin as an Input Serial.begin(9600); // Starts the serial communication } void loop() { // Clears…

Continue reading

DHT11 Week 5 Class

DHT11 needs a simple circuit. Refer the above diagram. The code is below #define DHT11PIN 7 dht11 DHT11; void setup() { Serial.begin(9600); } void loop() { Serial.println(); int chk = DHT11.read(DHT11PIN); Serial.print(“Humidity (%): “); Serial.println((float)DHT11.humidity, 2); Serial.print(“Temperature (C): “); Serial.println((float)DHT11.temperature, 2); delay(2000); } To change DHT11 temperature to Fahrenheit use…

Continue reading

LCD panel

http://patasala.nyganeshtemple.org/wp-content/uploads/2018/12/LiquidCrystal_I2C.zip /******************************** * name:I2C LCD1602 * function:You should now see your I2C LCD1602 display the flowing characters: “SunFounder” and “hello, world”. ********************************/ //Email:support@sunfounder.com //Website:www.sunfounder.com /********************************/ // include the library code #include <Wire.h> #include <LiquidCrystal_I2C.h> /**********************************************************/ char array1[]=”Patasala”; //the string to print on the LCD char array2[]=”Namaste!”; //the string to print…

Continue reading

Week 1 Arduino Lesson

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…

Continue reading

Feedback

We request all the parents to give us any feedback you may have. This will help us plan better for the future. Please use the link below or send us an email. Patasala Feedback

Continue reading