Monday, November 24, 2014
One in a million
I don't know what to say, but I feel like I should say something.
Thank you for visiting my blog.
Here are the blog posts that have received most attention to date:
1. Ultrasonic sensor
2. Simple Arduino Serial Communication
3. Bluetooth tutorial 1
4. Bluetooth Android Processing
5. Sound Sensor
6. 433 MHz RF Module with Arduino : this one is rising FAST !
7. Reading from a text file and sending to Arduino
8. Flex sensor and LEDs
9. PhotoCell - sensing light
10. Simple Arduino Serial Communication (Part 2)
For a list of all my projects - please visit my projects page:
ArduinoBasics Project Page
If that is not enough, then perhaps you should visit the Arduino Tutorials Community on Google+.
You are bound to find a project that sparks your interest, or perhaps you could even share your own !
Feel free to leave your thoughts, suggestions or messages in the comments.
Or if you wish to send a confidential message to me - then I would advise to use the form on my Feedback page.
Thanks again for visiting, and good luck with your project and/or Arduino journey !!
Thursday, October 9, 2014
DIY Canon Intervalometer using Arduino
By taking a picture every 3 seconds, and then playing the sequence back at 30 frames a second, you will get to see a 10 minute event in just 7 seconds.To get a nice flowing motion picture, you need to get a good balance between the recording frame rate, and the play-back frame rate.
The recording frame rate is limited by the amount of memory you have in your camera, the length of the captured event, battery charge, and the camera's general capabilities. The playback frame rate needs to be fast enough to prevent jittering, but not so fast that you lose the event in a blink of an eye. The more you practice with different subject matters, the more you get a feel for how long you need to keep the camera running and how long to leave between shots.
When taking pictures of the clouds, you can generally use a 3-5 second frame rate, depending on their speed across the sky. To capture the flow of traffic, I would recommend a picture every 1-2 seconds. However, for really slow events like a plant growing, you may need to extend the frame capture rate significantly. You will get a better idea once you try it for yourself.
This tutorial follows on from the Arduino selfie tutorial, so you might notice some similarities. However, in this tutorial, we will have more control over the intervalometer by using a sliding potentiometer and an LED bar. The pin layout is slightly different from the Arduino Selfie tutorial - so best to start from scratch to avoid pin misconfigurations.
Warning : Any circuit you build for your camera (including this one) is at your own risk. I will not take responsibility for any damage caused to any of your equipment.
I found out that my Canon Powershot SX50 HS camera has a port on the side for a remote switch. In the "Optional Accessories" section of the camera brochure, it identifies the remote switch model as RS-60E3. I then looked up the model number on this website to find out the size of the jack (3 core, 2.5mm), and the pinout (Ground, focus and shutter) required to emulate the remote switch. Once I had this information, I was able to solder some really long wires to the jack and connect up the circuit (as described below).
I use Time-Lapse tool to stitch all of the pictures together to create a movie/animation.
You will need to download and install the LED_Bar library from Seeedstudio into your Arduino IDE libraries folder in order to use the LED Bar in this tutorial. For more information about the LED Bar - visit the LED Bar Seeed-Studio wiki.
Parts Required:
- Freetronics Eleven or (Arduino UNO compatible board)
- Grove Base Shield
- Grove Sliding Potentiometer
- Grove LED Bar
- Grove Universal 4 Pin 20cm Cable
- 4 Channel Relay Module
- 2x 330 ohm resistors
- 2 x diodes
- breadboard
- Jumper Wires (male to male)
- Jumper Wires (female to male)
- Canon Powershot SX50 HS - (here is the brochure)
- Three core, 2.5 mm Jack
Fritzing Sketch
Connection Tables
Arduino to Relay Module:
Relay Module to Camera:
Arduino to Slide Potentiometer:
Arduino to LED Bar:
Arduino Sketch
1 |
|
The Video
This has been one of my favorite projects, it was a lot of fun, and very interesting.
I highly recommend that you try it out!
Visit my ArduinoBasics Google + page.
Follow me on Twitter by looking for ScottC @ArduinoBasics.
Have a look at my videos on my YouTube channel.
Feel free to share this page with your friends in any way you see fit.
Tuesday, September 16, 2014
Arduino Selfie
My attention is drawn towards the noise behind me....
I cannot believe it.
There it is.
The Arduino is taking a SELFIE !!
How did this happen?
Well actually, it is not that difficult for an Arduino.
I found out that my Canon Powershot SX50 HS camera has a port on the side for a remote switch. In the "Optional Accessories" section of the camera brochure, it identifies the remote switch model as RS-60E3. I then looked up the model number on this website to find out the size of the jack (3 core, 2.5mm), and the pinout (Ground, focus and shutter) required to emulate the remote switch. Once I had this information, I was able to solder some really long wires to the jack and connect up the circuit (as described below).
Warning : Any circuit you build for your camera (including this one) is at your own risk. I will not take responsibility for any damage caused to any of your equipment.
Parts Required:
- Freetronics Eleven or (Arduino UNO compatible board)
- 4 Channel Relay Module
- 2x 330 ohm resistors
- 2 x diodes
- breadboard
- Jumper Wires (male to male)
- Jumper Wires (female to male)
- Canon Powershot SX50 HS - (here is the brochure)
- Three core, 2.5 mm Jack
Fritzing Sketch
Connection Table
Three core, 2.5 mm jack
Camera Connection to Relays
Jack pinout
Completed Circuit
Arduino Sketch
1 |
|
By connecting up the camera to an Arduino, the camera just got smarter !!
The Arduino connects to 2 different channels on the relay board in order to control the focus and the shutter of the camera. The relays are used to isolate the camera circuit from that of the Arduino. I have also included a couple of diodes and resistors in the circuit as an extra precaution, however they may not be needed.
Warning : Any circuit you build for your camera (including this one) is at your own risk. I will not take responsibility for any damage caused to any of your equipment. Do your research, and take any precautions you see fit.
The Video
Visit my ArduinoBasics Google + page.
Follow me on Twitter by looking for ScottC @ArduinoBasics.
Have a look at my videos on my YouTube channel.
However, if you do not have a google profile...
Feel free to share this page with your friends in any way you see fit.
Sunday, September 7, 2014
Relay Module
WARNING: Mishandling or incorrect or improper use of relays could result in
- serious personal injury or DEATH
- possible physical damage of the product
- faulty operation
- or create serious/dangerous hazards.
Please make sure that you read and understand how your relay/relay module board works, the voltage and current it is rated for, and the risks involved in your project BEFORE you even attempt to start putting it together. Seek professional and qualified assistance BEFORE you undertake ANY high power projects.
If you choose to follow the instructions in this tutorial, you do so at your own risk. I am not an electrician, and am not a qualified electrical engineer - so please do your research and seek advice BEFORE undertaking a project using a relay. Please check your connections and test them BEFORE turning the power on.
I accept no responsibility for your project, or the risk/damage/fire/shock/injury/death/loss that it causes. You take full responsibility for your actions/project/creation, and do so at YOUR OWN RISK !!!
Please note: It is illegal in some countries to wire up a high power project without an electrician. Please check your country's rules/laws/regulations before you undertake your project. If you have any doubts - don't do it.
 
What is a relay
A Relay is an electrically operated switch. Many relays use an electromagnet to mechanically operate the switch and provide electrical isolation between two circuits. In this project there is no real need to isolate one circuit from the other, but we will use an Arduino UNO to control the relay. We will develop a simple circuit to demonstrate and distinguish between the NO (Normally open) and NC (Normally closed) terminals of the relay. We will then use the information gained in this tutorial to make a much more exciting circuit. But we have to start somewhere. So let's get on with it.
Parts Required:
- Freetronics Eleven or (Arduino UNO compatible board)
- 4 Channel Relay Module
- 2x LEDs
- 2x 330 ohm resistors
- Jumper Wires (male to male)
- Jumper Wires (female to male)
Fritzing Sketch
Table of Connections
Arduino Sketch
1 |
|
The Red light on the Relay board turns on when power is applied (via the VCC pin). When power is applied to one of the Channel pins, the respective green light goes on, plus the relevant relay will switch from NC to NO. When power is removed from the channel pin, the relay will switch back to NC from NO. In this sketch we see that power is applied to both LEDs in the setup() method. When there is no power applied to the CH1 pin, the yellow LED will be on, and the Green LED will be off. This is because there is a break in the circuit for the green LED. When power is applied to CH1, the relay switches from NC to NO, thus closing the circuit for the green LED and opening the circuit for the yellow LED. The green LED turns on, and the yellow LED turns off.
I also show what happens when you apply power to a channel (eg. CH3) when there is nothing connected to the relay terminals. The respective onboard LED illuminates. This is useful for troubleshooting the relays, and knowing what state the relay is in (NC or NO). NC stands for Normally closed (or normally connected) NO stands for Normally open (or normally disconnected)
Here is a circuit diagram for two of the relays on the relay module (CH1 and CH2).
This was taken from the iteadstudio site.
The Video
Wednesday, August 13, 2014
Arduino UNO nRF Adapter
nRF24L01 adapters |
This blog entry is about my process in making an Arduino UNO nRF24L01 Adapter from start to the current version... ( If you would like to order a pair of the nRF Adapter, please click on nRF Adapter for Sale. )
Do you face the problems of messy jumpers cables like below when using nRF24L01+ with an Arduino UNO on a breadboard ??
nRF24L01 on breadboard |
DIY nRF for breadboard |
nRf24L01 on Arduino UNO |
nRF24L01 with external antenna |
With this problem, I started my journey to solve this problem with a nRF Adapter... below are pictures of the evolution of the adapter.
Perfboard first version
The orange and white wires fly across the UNO for the 3.3V power needed by the nRF24L01 radio. |
nRF adpater with bottom wiring |
nRF adapter with top wiring |
PCB Version with 3.3V LDO ( PCB designed by ZXLee )
nRF20L01 adapter DIY PCB 1 |
nRF24L01 adapter DIY PCB 1 |
nRF24L01 adapter DIY PCB 1 |
PCB Version 2 with 2 buttons ( PCB designed by Vintronics )
nRF24L01 adapter DIY PCB 2 bottom |
nRF24L01 adapter DIY PCB 2 top |
We took the above design, dropped the 2 buttons , fine tuned it and made the final version for factory PCB. This is a joint collaboration project between Arduino for Beginners blog and Vintronics ..
Final factory made PCB version ( designed by Vintronics & myself )
This version have a AMS1117-3.3 at the bottom of the PCB.
nRF24L01 adapter PCB front |
nRF24L01 adapter PCB back |
Final version with headers soldered on PCB
nRF24L01 adapter PCB front |
nRF24L01 adapter PCB back |
nRF24L01 Adapter with radio
nRF24L01 adapter with radio |
nRF24L01 adapter PCB with radio |
nRF Adapter on Arduino UNO
The nRF adapter uses pin 8 for CE, pin 9 for CSN and pin 10 for Vcc (5V to 3.3V with the AMS1117-3.3V VR )
nRF Adapter on Arduino UNO |
|
All nRF24L01 adapters |
Summary Links :-
- My RF24 repo fork with support of the nRF Adapter : https://github.com/stanleyseow/RF24
- Test your nRF24L01 transfer speed https://github.com/stanleyseow/RF24/tree/master/examples/Transfer
- More info on nRF24L01 http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo