Arduino Lab 2 – Morse Code Generator

Introduction An excerpt from OmniGlot.com about the origin of Morse Code: Morse Code was invented by Samuel F. B. Morse (1791-1872), a painter and founder of the National Academy of Design. He conceived the basic idea of an electromagnetic telegraph in 1832, and produced the first working telegraph set in 1836. This made transmission possible over any distance. The first Morse Code message, "What hath God w ...

Read more

Hardware and Arduino Code for DIY WMRP-Solder Station

Features: low offset op amp for soldering tip temperature measurement with type c thermocouple cold junction compensation using the PTC (KTY82-210) included in the WMRP soldering pencil input voltage measurement (for use with 3 cell lipo battery) soldering pencil current measurement recognizing if the soldering pencil rests in the stand (--> standby) 3 buttons for save and recall temperature values rotar ...

Read more

Arduino Ping Ultrasonic Range Finder Code

The Ping))) is an ultrasonic range finder from Parallax. It detects the distance of the closest object in front of the sensor (from 2 cm up to 3m). It works by sending out a burst of ultrasound and listening for the echo when it bounces off of an object. The Arduino board sends a short pulse to trigger the detection, then listens for a pulse on the same pin using the pulseIn() function. The duration of this ...

Read more

Arduino Keyboard and Mouse Control Code

This example illustrates the use of the Mouse and keyboard libraries together. Five momentary switches act as directional buttons for your cursor. When a button is pressed, the cursor on your screen will move, and a keypress will be sent to the computer. Once you have the Leonardo programmed and wired up, open up your favorite text editor to see the results. NB: When you use these libraries, the Arduino tak ...

Read more

Arduino Digital Switch Code

This is basic for your arduino projects, input switch read from digital input. When ever switch pressed, LED will turn on.   [caption id="attachment_4235" align="aligncenter" width="600"] PushButton_arduino_code[/caption]   Instruction; 1) Connect cathode lead of LED (shorter lead) to ground pin and anode lead of LED (longer lead) to pin 13. 2) Add switch to breadboard, connect one of the switch l ...

Read more

Arduino Joystick Mouse Control Code

Using the Mouse library, you can controls a computer's onscreen cursor with an Arduino Leonardo, Micro, or Due. This particular example uses a pushbutton to turn on and off mouse control with a joystick. Cursor movement from the Arduino is always relative. So every time the analog input is read, the cursor's position is updated relative to it's current position. Two analog inputs ranging from 0 to 1023 are ...

Read more

Arduino Row-column Scanning to control an 8×8 LED Matrix Code

LED displays are often packaged as matrixes of LEDs arranged in rows of common anodes and columns of common cathodes, or the reverse. Here's a typical example, and its schematic: These can be very useful displays. To control a matrix, you connect both its rows and columns to your microcontroller. The columns are connected to the LEDs cathodes (see Figure 1), so a column needs to be high for any of the LEDs ...

Read more

Arduino Serial Communication Code

Arduino can send output through serial communication to your computer over USB. The output can be anything such as status, text, sensor reading, value, number etc. You can view the status output by clicking Serial Monitor button at Arduino Environment software. Instruction; 1) Connect your arduino to your computer using USB cable A plug to B plug. Upload this code to your arduino /*   Serial Communication   ...

Read more

Rotary Encoder Video Tutorial with Arduino Code

Rotary Encoder Tutorial with Arduino Code int pulses, A_SIG=0, B_SIG=1; void setup(){ attachInterrupt(0, A_RISE, RISING); attachInterrupt(1, B_RISE, RISING); Serial.begin(115200); }//setup void loop(){ } void A_RISE(){ detachInterrupt(0); A_SIG=1; if(B_SIG==0) pulses++;//moving forward if(B_SIG==1) pulses--;//moving reverse Serial.println(pulses); attachInterrupt(0, A_FALL, FALLING); } void A_FALL(){ detach ...

Read more

Arduino Servo Basic Code

In arduino projects, you might add servo to your projects. This short tutorial, show you the basic how arduino and servo works together.   Instruction; 1) Connect all jumper wire as shown in diagram. 2) Connect the signal wire from servo to digital pin 9. Upload this code to your arduino /*   Servo Basic   Understanding the basic of servo in arduino projects. Sweep servo to 0, 90, 180, 90 and 0.   Code ...

Read more

Arduino String Case Change Functions Code

The String case change functions allow you to change the case of a String. They work just as their names imply. toUpperCase() changes the whole string to upper case characters, and toLowerCase() changes the whole String to lower case characters. Only the characters A to Z or a to z are affected. Circuit There is no circuit for this example, though your Arduino must be connected to your computer via USB. ima ...

Read more

Arduino Hello World Blink Code

This is a basic example how arduino works. In this arduino projects you’ll see how arduino control LED on for 1 second and off for 1 second repeatedly. Instruction; 1) Connect cathode lead of LED (shorter lead) to ground pin and anode lead of LED (longer lead) to pin 13. Upload this code to your arduino /* Blink Turns on an LED on for one second, then off for one second, repeatedly.This example  code is in  ...

Read more
Scroll to top