Posts

Showing posts with the label arduino

arduino for beginners – behind the fundamentals – Part 4

Image
This tutorial is about arduino and we going to learn some basics things together. In this Part we going see what is behind the fundamentals. Sending input from the serial console to the arduino:   To send inputs from the Serial Monitor to the arduino, we need to use the Serial.read() function, and as example we make a Morse code generator take the serial inputs and generate them on light and sound using LED and buzzer. In this experiment we need: -1 LED. -1 Buzzer. -6 Wires. -220 Ohm Resistor. -BreadBoard. -Arduino Uno. And This code: Morse_buzzer_led See The Arduino for Beginners Tutorials

arduino for beginners – Adding Components – Part 3

Image
This tutorial is about arduino and we going to learn some basics things together. In this Part we going add Components. Adding an LED:   -1 LED. -2 Wires. -220 Ohm Resistor. -BreadBoard. -Arduino Uno And This Code:  Led_on This will Turn the LED On for Ever . Fading an LED’s brightness with Pulse Width Modulation (PWM):   In this experiment we going see how to increase and decrease LED’s brightness with PWM, by using analogWrite() function. -1 LED. -2 Wires. -220 Ohm Resistor. -BreadBoard. -Arduino Uno And This Code: Led_pwm   Turn the led on/off using a push button:     In this experiment we going see how to turn on/off the LED using a push button. So we need: -1 LED. -1 Push Button. -6 Wires. -220 Ohm Resistor. -10 Khm  Resistor. -BreadBoard. -Arduino Uno And This code: led_button Fading an LED with PWM based on Potentiometer value:   In this experiment we going see how ...

arduino for beginners – Setting Up – Part 2

Image
This tutorial is about arduino and we going to learn some basics things together. In this Part we going setting up arduino. Buying an arduino: Getting an arduino board, we going use  Arduino  uno. Other Components we need: -USB Cable. -Breadboard. -Flexible Wires. -Push Button. -Potentiometers. -Resistors. -LEDs. -RGB LED. The Arduino Board: Microcontroller ATmega328 Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limits) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA Flash Memory 32 KB ( ATmega328 ) of which 0.5 KB used by bootloader SRAM 2 KB ( ATmega328 ) EEPROM 1 KB ( ATmega328 ) Clock Speed 16  MHz Length 68.6 mm Width 53.4 mm Weight 25 g Note : The 6 Digital I/O (Provide PWM output) with the tide ~ symbol next to the number on the board, they allow for  Pulse width Modulation (PWM) , witch is a techni...

arduino for beginners – Electronics background – Part 1

Image
This tutorial is about arduino and we going to learn some basics things together. In this Part we going to see some Electronics  Background. Understanding Power Flow: Let start with the basics about voltage, current and resistance. These three components come together in the Ohm’s Law, which is the key to understanding a circuit. Ohm’s law says v is equal to i times r, or voltage is equal to current, which is measured in amps times resistance, which is measured in ohms. Ohm’s law: V = I x R Voltage(Volts) = Current(amps) x Resistance(ohms). Resistors: -Limit the flow of electron. -Resistance is measured in ohms. Finding the correct Resistor: -Know how much voltage is used up. Example 1 :  Simple One LED Specs. Vs : Power Supply 5-Volt circuit. Vl :  LED use 2-Volt. I : 20mA. R = (Vs-Vl) / I. R = (5-2) / 0.02 A. R = 3 / 0.2 = 150 Ohm. So we can use 150 Ohm or higher than,  but not less than 150 Ohm. Example 2  : Connecting LEDs ...

Arduino for beginners

Image
In this tutorial we going learn how to get start with Arduino, see some basic electronic background, Setting up arduino and add some components and finally we going see some advanced project with arduino. Electronics background – Part 1 Setting Up – Part 2 Adding Components – Part 3 Behind the Fundamentals – Part 4

Let's play with arduino : Building an Autonomous Car Platform

Image
Tthose steps taken from Instructable   What is PiCar? PiCar is an open sourced autonomous car platform. It isn’t autonomous by itself, but you can easily add sensors to control the car with an Arduino or Raspberry Pi. Why use PiCar instead of an RC car? Using PiCar is very similar to using an RC car as a platform. However, PiCar gives you more control and is easier to modify than an RC car. The chassis for the PiCar is 3D printed, and you can easily edit the 3D model to add more space in the car if needed. In addition, all of the parts are either easily available online or can be 3D printed. Who made PiCar? PiCar was designed at Washington University in St. Louis in the lab of Humberto Gonzalez and Silvia Zhang. The car was designed in May of 2017 and was entered into a robotics competition in June. The PiCar came in the top 10 out of 30+ international teams in the Silk Road Robotics Innovations Competition at Xi'an Jiaotong University in Xi...