Arduino Project 8- RGB LED control
In this tutorial, we will create a sketch in which the RGB LED emits only the green light that turns on and off gradually. In the second example, you will see that red, green and blue lights also turn on and off gradually.
This project is suitable for school students and beginners.
For this experiment, you will need 1 RGB LED and three 220 Ohm resistors.
Name | Quantity | Component |
---|---|---|
D1 | 1 | LED RGB |
U1 | 1 | Arduino Uno R3 |
R1 R2 R3 |
3 | 220 Ω Resistor |
Experiment 1: Only Green light turns on and off gradually
Arduino Sketch 1:
Experiment 2: All lights turn on and off gradually
Arduino Sketch 2:
Arduino Project 7- Button tactile switch and LED
In this tutorial, we will use the digitalRead function and learn how to read a digital pin.
In our case, the digital sensor that will be read will be a common button/reset tactile switch that when pressed will turn on the LED.
Components required:
Name | Quantity | Component |
---|---|---|
U1 | 1 | Arduino Uno R3 |
D1 | 1 | Green LED |
R1 | 1 | 220 Ω Resistor |
S1 | 1 | Pushbutton |
R2 | 1 | 10 kΩ Resistor |
Temperature sensor using Arduino, LM35 and I2C LCD
This is just a simple Arduino project comprising Arduino, LM35, and I2C LCD. It displays the room temperature on the I2C LCD and the serial monitor.
The project is suitable for beginners and can be used for school projects.
In the past we have done several projects using LCD and LM35, please check the projects here.
Arduino Sketch:
Documents:
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Turn on an AC lamp using Arduino, 5V relay and motion sensor
This is a simple motion sensor project using Arduino. A 220V AC lamp is connected to a 5V relay and the relay is activated once the motion sensor senses motion and sends a signal to the Arduino.
List of materials
- Arduino Uno ( Rev 3 )
- Sensor ( PIR ) HC-SR501
- Keyes SRD-05VDC-SL-C Relay Module or any 5V relay module
- Socket
- Bulb ( Incandescent lamp )
- Suitable wires and jumpers ( thicker wires for a lamp connection, such as 1.5mm FiOS 2 ).
- A breadboard or a protoboard to solder.
If you have never used a relay, you are recommended to read this article: How to use a relay
The code
const int negativeRELE = 10; const int pinPIR = 4; void setup () { pinMode (pinRELE, OUT); pinMode (pinPIR, INPUT); } void loop () { int valued = digitalRead (pinPIR); if (value == HIGH) { digitalWrite (pinRELE, HIGH); delay (5000); digitalWrite (pinRELE, DOWN); } }
Running the Circuit
The project shown below has been added with an LDR/photoresistor. This gives the project an additional feature of responding to darkness and light. To test the circuit, simply move the front of the sensor to be triggered.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Arduino Project 5- How to use a servo with Arduino
In this tutorial, we will learn how to use a servo motor.
A Servo is a motor capable of making maximum rotations of 270° and is widely used in robotics and modeling.
It requires a library (<Servo.h>) that is already installed on the Arduino IDE software.
In this tutorial, we will vary the position of the servo every half second, you can vary the pause time for each rotation by changing the time (in milliseconds) in the delay brackets (500). In our case, the delay is 500 ms which means that the servo after having turned to a certain degree/angle pauses for half a second.
List of components:
Name | Quantity | Component |
---|---|---|
U1 | 1 | Arduino Uno R3 |
M1 | 1 | Servo |
Arduino Project 4- LDR and Buzzer Experiment
In this project, we will learn to experiment with LDR and a buzzer. The output of this experiment is sound with different frequencies that are produced depending upon the light falling on the LDR/photoresistor.
STEPS
– Connect the negative black wire of the buzzer to pin GROUND and the black positive to the digital pin 9.
– Connect to pin 5V a resistor of 1 kΩ and the other end of it a photoresistor and pin A0.
– Connect the other lead of the resistor pin GROUND.
List of components:
Name | Quantity | Component |
---|---|---|
R1 | 1 | 1 kΩ Resistor |
PIEZO1 | 1 | Buzzer [Piezo small] |
R2 | 1 | Photoresistor |
U1 | 1 | Arduino Uno R3 |
Arduino Project 3- Arduino Potentiometer and LED
In this tutorial, we will learn to use a potentiometer with Arduino. It allows us to change its value by turning a small knob, the analog value read by Arduino will enable us to do our flashing of the LED depending on the value read.
Steps:
-Connect the LED as shown on the image.
-Connect to pin A0 the middle pin of the potentiometer
-Connect the other two leads- one to the GND and the other to the 5V pin. This does not affect the functioning of the potentiometer.
List of components:
Name | Quantity | Component |
---|---|---|
D1 | 1 | Blue LED |
R1 | 1 | 220 Ω Resistor |
Rpot1 | 1 | 10 kΩ, Potentiometer |
U1 | 1 | Arduino Uno R3 |
Arduino Project 2- LDR/Photoresistor and LED
The photoresistor or LDR is a resistor that varies its value according to the light falling on it and therefore it can be used with Arduino to create innovative and more complex projects.
Connect the LED and LDR to Arduino as shown on the image.
List of components:
U1 | 1 | Arduino Uno R3 |
R1 | 1 | 1 kΩ Resistor |
R2 | 1 | 220 Ω Resistor |
R3 | 1 | Photoresistor |
D1 | 1 | Orange LED |
Arduino Project 1- Blinker or Flasher using Arduino UNO
This is the most basic project for Arduino beginners. Almost everyone starts Arduino with this project.
The output of this project is a blinking/flashing LED. Insert an LED on your breadboard and connect it to your Arduino using wires as shown on the image.
We can also use the inbuilt LED present on the Arduino board indicated with the letter L without necessarily connecting the LED as shown in the diagram. The LED L already has a smd resistor integrated on the board, this allows us to insert the LED directly into the GND pins and 13.
Components required to build this project:
- 1x LED
- 1 x Breadboard
- 1 x 220 Ohm resistor
- 1 x Wires
- 1 x Arduino UNO R3
Steps:
– Connect Arduino pin 13 to the resistor
– Connect the longer lead of the LED (anode pin) to the resistor.
– Connect the shorter lead of the LED to the Arduino pin GND (ground).
Insert the code on Arduino through the IDE software if you have not downloaded it follow this guide on how to install the Arduino software .
Arduino Sketch:
NE555 and Arduino for interactive sound production
This project shows a combination of analog and digital circuits ready for interactive sound production! The project uses Arduino and NE555. (more…)
DIY Arduino Kit- How to Make your own Arduino UNO
We are now selling BLUE colored DIY Arduino kit.
You know that there are several versions of Arduino hardware. Hobbyists have also made Arduinos on strip boards giving different looks. Here’s one more Arduino, that is a simple do-it-yourself (DIY) kit. It is just like any other Arduino UNO board. However, it does not have FT232RL chip, therefore, you would need a separate FTDI basic module to burn your sketch.
This kit contains everything you need to build your very own Uno-compatible DIY Arduino board. Simply follow the Assembly Guide and after some basic soldering, you’ll have made a fully-functional Arduino-compatible development board. The included ATmega328 comes pre-loaded with the “Optiboot” bootloader so you don’t have to worry about loading the firmware, simply solder it together, connect an FTDI Basic and load your favorite sketch using the Arduino IDE.
After the board is assembled, it can be powered by an FTDI connection or a regulated 6-15VDC power supply connected to either the DC Barrel jack or the 2 pin screw terminal.
Note: You will need either an FTDI Basic or FTDI cable to load code using the Arduino IDE.
Kit Includes:
- 1 x Arduino-Compatible plated through holes (PTH) Kit PCB
- 1 x ATMega328 with Optiboot bootloader
- 1 x L78L33 3.3V Voltage Regulator
- 1 x 5mm Green LED
- 1 x 5mm Red LED
- 2 x 330Ohm Resistor
- 1 x 10kOhm Resistor
- 1 x 16MHz Crystal
- 2 x 22pF Ceramic Capacitors
- 5 x 0.1uF Ceramic Capacitors
- 2 x 10uF Electrolytic Capacitors
- 1 x LM7805 5V Regulator
- 1 x Diode 1N4001
- 1 x Resettable Fuse PTC (300mA)
- 1 x 28-Pin DIP Socket (To seat your ATMega)
- 1 x Push Button Reset Switch
- 2 x 6-Pin Female Headers
- 2 x 8-Pin Female Headers
- 1 x 6-Pin Right Angle Header (To connect your FTDI Basic)
- 1 x 0.1uF Capacitor
- 1 x DC Barrel Jack
- 1 x 2-pin screw terminal
- 1 x 6 pin ICSP header
Assembly video tutorial:
Documents:
- Schematic- DIY Arduino
- Assembly tutorial
- Assembly instructions for BLUE colored board.
- Images of Blue board Arduino
- Gallery
You can purchase this kit from here:
Bluetooth adaptors supported by Amarino Shield
In Amarino shield version 3.0, there are headers for 3 different bluetooth adapters.
a. General Bluetooth Adapter – Cheapest adapter available at www.buildcircuit.net. RECOMMENDED !
b. BlueSMiRF– Bluetooth Mate Silver– More expensive adapter available on sparkfun.com.
c. BlueSMiRF Gold – The most expensive adapter available on sparkfun.com.
– Whichever Bluetooth adaptor you are using, the baud rate of Bluetooth adapter should match with the Serial Monitor’s baud rate. For example, if your Arduino source code has
Serial.begin(57600);
then, the baud rate of Bluetooth adapter should also be 57600. The default baud rate of BlueSMiRF module and general adapter is 9600. The shield works excellent with 9600. However, if you want to change the baud rate of BlueSMiRF module, here’s a tutorial.
We don’t know if we can change the baud rate of general Bluetooth adapters with the process mentioned on this tutorial. You can try it.
– This project has been tested with BlueSMiRF module as well as general Bluetooth adapter module and it works well.
———————————————————————————————————————————————————
Related tutorials:
- About Amarino toolkit
- About Amarino shield
- Flickr Images
- Experiment 1– Basic control over CD4094 without Android phone and serial emulator application
- Experiment 2- CD4094 control using Android phone and Amarino shield
- Experiment 3- Amarino experiment- RGB Lamp
- Experiment 4- Amarino experiment- Sensor Graph with LED Controller
- Experiment 5- Amarino experiment- LM35 based temperature sensor with LED controller
- Amarino Shield 3.0 Schematic
- Assembly tutorial
- Buy the shield
You can purchase this versatile Amarino shield at buildcircuit.net. The store is owned and operated by the team which operates buildcircuit.com.
How to use a 4 channel IC 2262/2272 RF receiver and transmitter remote control
The 4 channel RF receiver and transmitter can be used with or without an Arduino. You can connect relays to the receiver outputs to control it wirelessly. (more…)
How to assemble a line following robot – Page 2
Remaining part of assembly of line following robot…
Fix the nut bolt set on the PCB
Solder the photo resistor/LDR as shown on the image.Make sure that the LDR is at least 5mm above the ground or spot where you are placing the robot.
Solder the transparent 5mm LEDs. The LEDs should be 5mm above the LDR.
Peel of the top sticker to stick the included battery holder
Pass the wires through the hole
The package includes two wheels also.
Fix the wheels to the motors
This is how you insert the holes of the wheel to the motor
Use the screws to tighten the wheel to the motor
The line following robot is now ready. Make sure that you use a different switch as shown below
Make a track with a black insulating tape. You may use paint or permanent marker. I have one with a black insulating tape. Watch the following video:
How to assemble a line following robot – Page 1
The assembly of a line following robot is pretty straight forward. If you follow the silkscreen labels, you will be able to assemble it easily.
The line following robot comes with the components as shown on the image.
Start with resistors
Solder all the resistors that comes with the package.
Solder the transistors S8550
Solder the 5mm red LED. Make sure that the Anode and Cathode go into the right holes.
Solder the 100uF capacitors.
Solder the variable resistor 10K ohm
Solder 8 pin DIL socket
Solder wires on robot motors
Peel off the sticker and stick the motors
After sticking the motors, the robot should like this:
Make sure that the motors are soldered on the PCB solder pad.
See the remaining part of this tutorial on the next page.
How to use a 3 pin thermistor based temperature sensor with or without Arduino
A 3 pin NTC thermistor and LM393 comparator based module can be used to sense temperature or heat. It can be used both with and without Arduino.
First, let’s see how you can use it with Arduino.
Experiment: In this experiment, we simply increase the ambient heat around the thermistor and we’ll see how the thermistor responds to the temperature change. (more…)
Assembly Tutorial of Amarino Nano 1.0
Please visit this page first to know about Amarino Nano.
Assembly process of this kit is very easy. If you have basic soldering knowledge, you can assemble the board within half an hour.
You can directly visit BuildCircuit’s Flickr page and see all the assembly steps.
If you look at the PCB, you will see that the silkscreen labels are enough to guide you to solder the components properly.
Before you start, make sure that you have all the required components.
Here’s the list of components:
- 1 x Arduino Nano
- 1 x Bluetooth adapter
- 1 x Amarino Nano PCB
- 2 x 15 pin female headers
- 1 x 4 pin female header
- 1 x Red Color 1P DIP switch
- 1 x LM35DZ temperature sensor
- 1 x 5mm LED
- 1 x RGB LED- common cathode
- 1 x photo resistor
- 4 x 220 Ohm resistor
- 1 x 10K Ohm resistor
Now, follow these steps:
1. Always start with the small components. So, solder all the resistors first. Solder 220 Ohm resistors.
2. Solder 10K Ohm resistor and the photo resistor
3. Solder LM35DZ temperature sensor.
4. Solder 1P DIP switch, the one in RED color. This switch has to be turned off while uploading the Arduino sketch.
5. Solder 5mm white LED
6. Solder common cathode RGB LED
7. Solder 4 pin female header for Bluetooth module.
8. Solder 2pcs 15 pin female header to stack the Arduino Nano
9. Stack the Bluetooth module and the Arduino Nano on the correct female headers. Your Amarino Nano board is ready to use. Visit this page for experiments.
10. Connect a mini USB cable to operate the kit.
See the following links:
2. Experiments with Amarino Nano 1.0– You will get all the Apps and Arduino sketches on this page.
Where can you buy this kit ?
The kit is available at BuildCircuit Store (www.buildcircuit.com.au- Free Shipping in Australia)