Using Arduino

Arduino Waveform Generator

Waveform Generator using an Arduino

Waveform generators (also called function generators) are useful for testing and debugging circuits.  I often use them to test the frequency response of electronics components like op amp and sensors.  This waveform generator is powered by an Arduino.  It outputs four waveshapes: sine, triangle, pulse, and saw, each waveshape ranges in frequency from 1Hz-50kHz.  The …

Waveform Generator using an Arduino Read More »

Arduino Ultrasonic Range Finder

Ultrasonic Range Finder with an ATtiny85 using an Arduino

I’m here to show you how to use a HC-SR04 Ultrasonic Range Finder with an ATtiny85 as well as programming the ATtiny85 using the wonderful shield that randofo created. List of materials: ATtiny85 Programming Library Arduino Uno HC-SR04 Ultrasonic Range Finder and Library Jumper Wires Breadboard ATtiny85 Step 1: Program the Arduino Before you connect your shield to the Arduino …

Ultrasonic Range Finder with an ATtiny85 using an Arduino Read More »

Arduino Pedometer

Arduino Pedometer

Problem: So my nutritionist (doesn’t everyone have a nutritionist) suggested I should increase my exercise which primarily consists of walking my dog. She even gave me a chart of activities and calories burned. Here’s an example. http://www.nutristrategy.com/caloriesburned.htm Well, being a LAZY OLD GEEK, I decided to monitor my walking electronically. Solution: It was a “long and winding …

Arduino Pedometer Read More »

Power Meter

Power (Energy) Meter using Arduino

Part 1.  Analog Front-End. Opto-Isolator. Looking at the Power Quality Analyzer display, I was wandering, if there is any error in the measurement results, introduced by transformer. Overall THD picture doesn’t change much, suspiciously drawing same chart in the morning and in the evening, when electrical grid load significantly differs. Obviously, to estimate effect of the transformer, …

Power (Energy) Meter using Arduino Read More »

Arduino Voltmeter

Arduino Voltmeter Code

This arduino projects show how to make voltmeter with your arduino. It use voltage divider concept to estimate the voltage input. Instruction; 1) Connect all jumper wire as shown in diagram. Upload this code to your arduino /*   Voltmeter   Voltmeter base on voltage divider concept.   Code based on: http://www.clarenceho.net:8123/blog/articles/2009/05/17/arduino-test-voltmeter   Coded by: arduinoprojects101.com */ // include the library code: #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins LiquidCrystal lcd(7, 8, 9, 10, 11, 12); …

Arduino Voltmeter Code Read More »

Potentiometer or variable resistor control LED Code (2)

Potentiometer or variable resistor control LED Code using Arduino

The if() statement is the most basic of all programming control structures. It allows you to make something happen or not depending on whether a given condition is true or not. It looks like this: if (someCondition) { // do stuff if the condition is true } [Get Code] There is a common variation called if-else that looks like …

Potentiometer or variable resistor control LED Code using Arduino Read More »