- #define trig 2 #define echo 4long safe;
- long distance;long t;
- void setup(){
- pinMode(trig, OUTPUT);
- pinMode(echo, INPUT);
- pinMode(7, OUTPUT);
- pinMode(8, OUTPUT); }
- void loop(){
- digitalWrite(trig,LOW);
- delayMicroseconds(2);
- digitalWrite(trig,HIGH);
- delayMicroseconds(10);
- digitalWrite(trig,LOW);
- t=pulseIn(echo,HIGH);
- distance=t/74/2;
- safe=distance;
- if(safe<=10){
- digitalWrite(7,HIGH);
- digitalWrite(8,HIGH); }
- else{
- digitalWrite(7,LOW);
- digitalWrite(8,LOW); }}
TECH WITH ARDUINO
TECH WITH IRESH .Arduino is an open-source electronics platform that has gained immense popularity for its versatility, simplicity, and accessibility. It consists of both hardware and software components, designed to facilitate the creation of interactive projects by artists, hobbyists, and professionals alike. Arduino is used robertics. The heart of Arduino is its microcontroller board. This board is equipped with a microcontroller chip ..
Thursday, October 17, 2024
Smart Blind stick
Friday, April 19, 2024
How to code Bluetooth module..
How to code Bluetooth module with Arduino?
- Writing the Arduino HC-05 bluetooth module code:
- void setup(){
- Serial. begin(9600);
- QuartzBT. begin(9600); //Default Baud for comm, it may be different for your Module.
- Serial.println("The bluetooth gates are open.\n Connect to HC-05 from any other bluetooth device with 1234 as pairing key!." ); }
- How does a Bluetooth module work?
Simple code
Simple code of Night rider LED pattern arduino uno program.
void setup(){
pinMode(1, OUTPUT);
pinMode(2, OUTPUT); }
void loop(){
digitalWrite(1, HIGH);
delay(100);
digitalWrite(1, LOW);
digitalWrite(2, HIGH);
delay(100);
digitalWrite(2, LOW);}
Thursday, April 18, 2024
ARDUINO IDE INTERFACE AND TOOLS..
ARDUINO IDE INTERFACE..
In the left top part there are five buttons:

Verify. Allows you to compile your sketch and check if there are any errors.

Upload. When you press this button, it first compiles, even if you pressed the “Verify” button before. Then, if there are no errors, the binary file is uploaded to the board, which is connected to the specified port

New. Creates a new sketch.

Open. To open one of the previously created sketches or an example sketch.

Save. Nothing surprising here, this button saves the current sketch.
In the right top part there is only one button:

Serial Monitor. Opens a window with which you can communicate with your board using the serial UART interface
Arduino IDE
Arduino IDE
The new major release of the Arduino IDE is faster and even more powerful! In addition to a more modern editor and a more responsive interface it features autocompletion, code navigation, and even a live debugger.
Nightly builds with the latest bugfixes are available through the section below.
download link : arduino software
How to connect motor controller to Arduino?
How to connect motor controller to Arduino?
- Connect 5V and ground of the IC to 5V and ground of Arduino.
- Connect the motor to pins 2 and 3 of the IC.
- Connect IN1 of the IC to pin 8 of Arduino.
- Connect IN2 of the IC to pin 9 of Arduino.
- Connect EN1 of IC to pin 2 of Arduino.
- Connect SENS A pin of IC to the ground.
- How does L298N motor driver work?
L293D Motor Driver Shield
Specifications
How to connect Bluetooth module HC-06 to Arduino Uno?

HC-06 Bluetooth module
HC-06 Bluetooth module
- What is the use of HC-06 Bluetooth module?
- What is HC Bluetooth module?
HOW TO CONNECT PIR SENSOR TO ARDUINO BOARD..
HOW TO CONNECT PIR SENSOR TO ARDUINO BOARD..
- GND – connect to ground.
- OUT – connect to an Arduino digital pin.
- 5V – connect to 5V.
PIR SENSOR..
PIR SENSOR..
A PIR sensor is an electronic sensor used in motion detectors such as automatically triggered lighting devices and protection systems that measure devices emitting infrared light in their field of view.
- What does PIR stand for?
Wednesday, April 17, 2024
Ultrasonic sensor
Ultrasonic sensor
What is an Ultrasonic Sensor?
An ultrasonic sensor is an instrument that measures the distance to an object using ultrasonic sound waves. An ultrasonic sensor uses a transducer to send and receive ultrasonic pulses that relay back information about an object's proximity.
- What is an ultrasonic sensor used for?
servo motor
servo motor
- What is the advantage of servo?
How to connect Arduino UNO?
How to connect Arduino UNO?
- Launch the Arduino IDE (1.8. 0 or later).
- Connect the board to PC.
- Select the Arduino UNO WiFi as board in the Tools>Board menu.
- Select the corresponding serial port in the Tools>Port menu.
- Upload the ESP Recovery sketch. It is into the UNOWiFiDev. Edition Library. Download it from Library Manager.
- Connect the Arduino hardware via USB, by choosing the connection type USB.
- Choose the board type and the port number from the Choose board and Choose port menus. ...
- After the upload is complete, click Test connection to test the connection between your host computer and the Arduino board.
-
#define trig 2 #define echo 4 long safe; long distance; long t; void setup(){ pinMode(trig, OUTPUT); pinMode(echo, INPUT); pin...
-
servo motor A servo motor is a rotary actuator that allows for precise control of angular position . It consists of a motor coupl...
-
ULTRASONIC SENSER WORKING... WATCH NOW : how to work ultrasonic senser...
.png)
















.jpeg)
Comments