Cosmarino- A DIY kit for Android-Arduino communication

Cosmarino

“Cosmarino is a kit for experimenting Android-Arduino communication via Bluetooth.”

Features: 

  • Control RGB LED with Android phone
  • Display photoresistor sensor data on a graph on Android phone
  • Transmit LM35DZ temperature sensor data on Android phone
  • Control 5V relay with Android phone
  • Control 5V relay and LED with any infrared remote control

This is Cosmarino- A simple DIY kit for facilitating communication between Arduino Nano and Android via Bluetooth communication medium. The kit also has a TSOP4838 infrared sensor which offers you the possibility of controlling the kit with a normal infrared remote control.

The kit has been designed to support particularly Amarino toolkit Android application, but we have tested the kit with many other applications made for Arduino-Android communication via Bluetooth and all have worked properly.

The kit package includes:

  1. Cosmarino kit- Available in fully assembled and DIY versions
  2. Bluetooth module
  3. Amarino Nano– Chinese version with CH340G chip
  4. Infrared remote control

Cosmarino has the following features:

  • Android app controlled: The Cosmarino kit can be controlled with several Android applications made for controlling Arduino or communicating with Arduino via Bluetooth. We have used Amarino toolkit and many other Android applications for testing different features of the kit.
  • Bluetooth support: The control signals from Android phone are sent to Arduino Nano via Bluetooth. There is a Bluetooth module connected to the circuit board that facilitates communication between Android and Arduino.
  • TSOP4838 infrared sensor: There is a TSOP4838 infrared sensor on the circuit board which allows you to control Cosmarino with any kind of TV/DVD remote control. However, the kit package includes an Infrared remote control also.
  • Fully programmable: The kit is fully programmable because it has Arduino Nano.

Experiments:

You can do several experiments with Cosmarino. Some of the interesting experiments have been listed below.

1. RGB LED control: You can control the common cathode RGB LED with your Android smart phone.

multicolor lamp

2. Relay control- Relay on the kit can be controlled with the phone or any remote control.

3. LDR/photoresistor sensor data- Cosmarino can transmit LDR sensor data to your phone. You can receive LDR sensor data and control the 5mm LED at the same time.

This feature is available with Amarino toolkit application only.

sensor graph

5. LM35 temperature sensor data- The kit transmits LM35 temperature sensor data to your phone. You can receive the sensor data and control the 5mm LED at the same time.

This feature is available with Amarino toolkit application only.

temperature sensor

 Schematic: (Click on the schematic to enlarge)

cosmarino

As you can see on the schematic the components have been connected to the Arduino Nano in the following way:

1. OUTPUT- RGB LED: R= D3, Blue= D5 and Green= D6. All these digital pins have Pulse Width Modulation function.

2. OUTPUT- 5mm LED connected to Digital pin D11

3. OUTPUT- 5V relay connected to Digital pin D2

4. INPUT- LDR/Photoresistor connected to Analog pin A1

5. INPUT- LM35 temperature sensor connected to Analog pin A0

6. INPUT- TSOP4838 infrared sensor connected to Digital pin D7

Related documents:

Where can you buy ?

buildcircuit

Cosmarino Assembly Tutorial

If you have come to this page from a search engine, please check this page first, you will eventually come to this page again.

About Cosmarino

The assembly process of the Cosmarino kit is very straight forward. You just need to follow the silkscreen labels to get the idea of assembly. A basic knowledge in soldering is enough for assembling the kit.

To be quick, you can see all the assembly images on Flickr. 

Step 1: Solder all the 220 ohm resistors

Step 1- Solder 220 Ohm resistors

Step 2: Solder 330 Ohm and 10K ohm resistors

Step 2- SOlder 330 Ohm and 10K Ohm resistors

Step 3: Solder 1N4001 diode.

Step 3- Solder 1N4001 Diode

Step 4: Solder LDR/ photoresistor.
Step 4- Solder LDR

Step 5: Solder BD139 NPN transistor
Step 5- Solder BD139 NPN transistor

Step 6: Solder LM35DZ temperature sensor
Step 6- Solder LM35 temperature sensor
Step 6.1- LM35 temperature sensor

Step 7: Solder TSOP4838 infrared sensor
Step 7- Solder TSOP4838 infrared sensor

Step 8: Solder 1P DIP switch
Step 8- Solder 1P DIP switch

Step 9: Solder 5mm white LED
Step 9- Solder 5mm White LED

Step 10: Solder RGB LED
Step 10- Solder common cathode RGB LED
Step 10.1- RGB Common cathode LED

Step 11: Solder 2pcs 15 pin female header
Step 11- Solder 4 pin and 15 pin female headers

Step 12: Solder 3 pin screw terminal
Step 12- Solder 3 pin screw terminal
Step 12.1- 3 pin screw terminal

Step 13: Solder 5V relay
Step 13- Solder 5V relay

Step 14: Stack Bluetooth module and Arduino Nano
Step 14- Stack Bluetooth module and Arduino Nano

The kit is ready to use
Step 15- Use Mini USB cable to program Arduino Nano - Copy


Cosmarino Experiments


 

Related documents:

Where can you buy ?

buildcircuit   ebay   etsy

How to program Amarino lamp

Recommended app

To know about Amarino lamp, visit this page. 

Amarino lamp is fully programmable. The kit package consists of FTDI basic breakout board, you can use it to program the lamp. The lamp is based on Arduino.

Connect the FTDI basic breakout board to the lamp, open the Arduino programming interface and upload your sketch.

REMEMBER: Turn off the red colored 1P DIP switch 1-position-2p-side-style-dip-switch-redwhile uploading sketch(if the Bluetooth module has been stacked over the 4 pin female header)

programming

Documents: 

  1. About Amarino Lamp
  2. Assembly Tutorial
  3. Amarino Lamp- Light sensor
  4. Lamp test with different phone sensors
  5. How to program Amarino lamp

Where can you buy ?

buildcircuit    etsy

Cosmarino Experiments

If you have come to this page from a search engine, please visit this page first, you will eventually come back to this page again.

About Cosmarino 

Cosmarino is a versatile kit that facilitates communication between Android and Arduino in a simple way.

We can do several experiments with this kit. In this tutorial we have shown experiments related to Amarino only. However, you can test the kit with several other Android app available at Google Play.

Before you start the experiments, please know how the components are connected to the Arduino Nano.

1. OUTPUT- RGB LED: R= D3, Blue= D5 and Green= D6. All these digital pins have Pulse Width Modulation fuctionality.

2. OUTPUT- 5mm LED: Digital pin D11

3. OUTPUT- 5V relay= Digital pin D2

4. INPUT- LDR/Photoresistor= Analog pin A1

5. INPUT- LM35 temperature sensor: Analog pin A0

6. INPUT- TSOP4838 infrared sensor= Digital pin D7

Steps for Amarino experiments: 

Amarino_logo-W490

For all the experiments, you have the following things in common:

Step 1: Amarino Toolkit MAIN application: This is the main Amarino toolkit application to be installed on your Android phone. There are other applications which work only after installing the main application. If the link does not work, download the application from here.

amarino main app

Amarino Nano (1)

Step 2: Amarino Library for Arduino: Download it and move it to the Libraries folder. You can check here if the Amarino team has upgraded the library. It’s always good to use the updated version .

If the given link does not work, you can download the library from this link. 

meet android

Step 3: Connect the Bluetooth module to the circuit board. Please note how the Bluetooth module has been stacked over the 4 pin female header. After you stack it on the circuit board, you will see a red LED blinks on the Bluetooth module.

bluetooth module  Bluetooth module

Step 14- Stack Bluetooth module and Arduino NanoNote how the Bluetooth module has been stacked over the board.

Then, activate the Bluetooth function of your phone.

Amarino Nano (2)

Step 5: After you see an LED blinking on the Bluetooth module, open the Amarino Main application, you see the following interface:

Amarino Nano (1)

On the Amarino main application interface, touch Add BT Device. That will display the Bluetooth module close to your Android phone.

Amarino Interface

Select the linvor Bluetooth module. Remember to note down the MAC ID also. In this example, the MAC ID is 20:13:05:09:15:39. It is unique for all the modules. You will need this MAC ID in the next step. Note that the MAC ID is unique for all modules. It is never same for any two Bluetooth modules.

Pressing the “Connect” button display a text box(for the first time), where you need to enter the pairing code, which is 1234. This connects the application to the chosen adapter. You can connect only one adapter at one time.

Pairing code: 1234

Once the adapter is paired up, you don’t need to pair it again. 

Now we can move to the experiments below:

 Experiment 1- RGB LED Control: 

RGB LED is connected to digital pins 3(RED), 5(GREEN) and 6(BLUE).

  • Download the RGB LED control application and install it on your phone.
  • Download the Arduino source code and upload it to your Arduino Nano. NOTE: You need to switch off the 1P DIP switch while uploading the sketch. After uploading switch it on again.
  • Set Bluetooth MAC ID. It is different for all Bluetooth modules. For example, my Bluetooth module has MAC ID: 98:D3:31:70:3A:98, so, I used that. No two Bluetooth modules can have the same MAC ID. You will have a different MAC ID for your module. Enter the MAC ID that you had noted down in the previous step.

RGB control application

  • As soon as you open the application, the app will connect to the Bluetooth module and you can simply control your RGB LED. As you move the slider, the color on the RGB LED changes. Remember to switch on the 1P DIP switch, otherwise, it won’t work. 

The multicolor lamp application

RGB LED control using “Arduino Bluetooth RGB LEDs” android App:

Cosmarino app

There are several Android applications that can control Amarino Nano kit. Here’s one application that we have tested:

You can then simply connect Bluetooth of your phone to the external Bluetooth module and control the Amarino Nano kit.

Experiment 2: Sensor Graph display

The photoresistor/LDR is connected to A1 and the 5mm white LED is connected to D11.

  • Download the sensor graph application and install it on your phone.
  • Download the Arduino source code and upload it to your Arduino Nano. NOTE: You need to switch off the 1P DIP switch while uploading the sketch. After uploading switch it on again.
  • Set Bluetooth MAC ID. It is different for all Bluetooth modules. For example, my Bluetooth module has MAC ID: 98:D3:31:70:3A:98, so, I used that. You will have a different MAC ID for your module.

Sensor Graph

  • Open the application and see the sensor data on your phone. You may also control the 5mm LED simultaneously. Remember to switch on the 1P DIP switch, otherwise, it won’t work. 

sensor graph (2)

Experiment 3: LM35 temperature sensor data display

  • Download the LM35 temperature senor display application and install it on your phone.
  • Download the Arduino source code and upload it to your Arduino Nano. NOTE: You need to switch off the 1P DIP switch while uploading the sketch. After uploading switch it on again.
  • Set Bluetooth MAC ID. It is different for all Bluetooth modules. For example, my Bluetooth module has MAC ID: 98:D3:31:70:3A:98, so, I used that. You will have a different MAC ID for your module.

temperature sensor log in

  • Open the application and see the sensor data on your phone. You may also control the 5mm LED simultaneously. Remember to switch on the 1P DIP switch, otherwise, it won’t work. 

LED control app interface

Relay control

There is a 5V relay on the Cosmarino kit. You can control the relay using your phone application or a normal infrared remote control.

Control the relay using general Android application and Infrared remote control

There are hundreds of applications on Google Play that have been made for Arduino and Android application. You can pick up any of those apps and control the kit.

In this example, we have picked up this application which transmits text ‘h’ every time the green button is pressed. We have programmed it in such a way that the relay is switched on if the Arduino gets an ‘h’.

TIP: If you want to know what text a random Android app sends to Arduino, you can check out this tutorial. The tutorial shows you what Arduino receives from the phone and what Arduino sends to the phone. See this video also.

The kit is fully programmable. Please remember to switch off the red DIP Bluetooth switch while programming, otherwise, the Arduino Nano cannot be programmed. You should switch it back again after the kit has been programmed.

Step 1: Install this Android application from Google Play.

external app

Step 2: Upload any of these sketches:

If you intend to control the relay with infrared remote control, then, you need to download the library and copy it to the libraries folder of Arduino.

Download Infrared sensor library from the original link 

Step 3: Open the Android application and search for the Bluetooth module stacked on the circuit board. Pair up the module with your Android application(to be done only once). Pairing code= 1234. You need to pair up with the module only once.

Step 4: Switch on/off the relay with the application. You can simultaneously control the lamp with your infrared remote control also if you have uploaded this sketch.

Related documents:

Where can you buy ?

buildcircuit   ebay   etsy

Amarino LED Lamp

Amarino Lamp is a versatile programmable LED lamp based on Arduino. The lamp has an inbuilt Arduino as its controller. PWM signals from Arduino are fed into UNL2003A and this chip controls the LED lamp. You can also simultaneously control the lamp with an infrared remote control. It has the following features:

  • Android app controlled: The LED lamp can be controlled with several Android applications made for controlling Arduino or communicating with Arduino via Bluetooth. We have tested the kit with Amarino toolkit and many other Android applications.
  • Bluetooth support: The control signals from Android phone are sent to the lamp via Bluetooth. There is a Bluetooth module connected to the circuit board that facilitates communication between Android and Arduino.
  • TSOP4838 infrared sensor: There is a TSOP4838 infrared sensor on the circuit board which allows you to control the lamp with any kind of TV/DVD remote control.
  • Fully programmable: The lamp is fully programmable because it has an inbuilt Arduino. You will need an FTDI breakout board to program the chip on the board. The kit package includes the FTDI basic breakout board.
  • Resettable PTC fuse: The lamp has a resettable PTC fuse which protects the circuit board from over current flow. In this kit, if the circuit tries to draw more than 500mA of current (if you have a bad short for instance) the PTC would ‘trip’ (by heating up). The increased resistance (trip state) would break the circuit and allow only a small leakage current.

Specification of lamp(according to the manufacturer): This is not the specification of whole circuit.

lamp image

MR16 4W LED Lamp
Lamp base MR16
Power 4W
Voltage 12V AC/DC
Lumens 400-500LM
Beam angle 45°
Dimension diameter 48mm x 61mm high
Weight 37g
Life time more than 50000 hours
Color temperature Cool white:5700-6300K

The kit package includes:

android lamp- main-small

The kit package includes everything that you need to build the LED lamp. On the assembly tutorial page you will get the list of components.

“The kit package does not include 12V/500mA power supply. You need to buy it separately”.

A 12V power supply with 500mA or 1A output is enough for this lamp.

You can buy similar to this one: 12V DC Power Adapter Supply 2.1mm 1A, CCTV

We do not sell that because different countries have different plug standards, so, we cannot stock that for all countries, not even Australia.

List of components is available on the assembly tutorial page.

About ULN2003:

Download datasheet

The ULN2003A is a high-voltage high-current darlington transistor array. The chip consists of seven npn darlington pairs that feature high-voltage outputs with common cathode clamp diodes for switching inductive loads. The collector-current rating of a single darlington pair is 500mA.

Because ULN2003 can drive 500mA, we chose MR16 4W LED lamp that can be driven easily by ULN2003A.

Schematic:

Smart phone lamp

How does it work ?

“You can simultaneously use Android phone application and IR remote control to operate the LED lamp.”

Bluetooth mode: 

The Bluetooth module on the kit is paired up with the Bluetooth of phone and control commands are sent from the phone application. The commands are interpreted by the Arduino UNO microcontroller and ULN2003 is driven to operate the LED lamp.

Infrared mode:

Infrared signals are sent from the infrared remote control and those signals are interpreted by Arduino UNO chip and control commands are sent to the ULN2003 to drive the LED lamp.

Using Amarino toolkit application

You can try several Amarino related experiments with this lamp.

Amarino_logo-W490

Step 1: Download Amarino main application from Amarino website(www.amarino-toolkit.net) and install it on your Android phone. Optional link (use this if the previous link does not work)

amarino main app

Step 2:  Download Meet Android Library and copy it to the Libraries folder of Arduino. Optional link

meet android

Step 3: Upload this sketch to the Atmega328P-PU Arduino UNO chip that’s on the circuit board. You will also need a library for remote control function, download the library and copy it to the libraries folder of Arduino.

Download Infrared sensor library from the original link 

Step 4: Connect the Bluetooth module to the circuit board. Please note how the Bluetooth module has been stacked over the 4 pin female header. And remember to SWITCH ON the circuit board. After you switch on the circuit board, you will see a red LED blinks on the Bluetooth module. Use a 12V (500mA/1A) power supply to power up the lamp.

bluetooth module  REMEMBER: Switch ON the 1P DIP RED color switch also. This switch:1-position-2p-side-style-dip-switch-red. Turning it on makes connection between the Bluetooth module and the microcontroller. But, this switch should be turned off while uploading a sketch.

Step 18- Fix a Bluetooth module over the 4 pin female headerSee how the  Bluetooth module has been stacked.

Then, activate the Bluetooth function of your phone

Amarino Nano (2)

Step 5: After you see an LED blinking on the Bluetooth module, open the Amarino Main application, you see the following interface:

Amarino Nano (1)

On the Amarino main application interface, press Add BT Device. That will display the Bluetooth module close to your Android phone.

Amarino Nano (3)

Select the HC-06 Bluetooth module. Remember to note down the MAC ID. In this example, the MAC ID is 98:D3:31:70:35:94. You will need this MAC ID in the next step. Note that the MAC ID is unique for all modules. It is never same for any two Bluetooth modules.

Now, you need to pair up your phone with the Bluetooth module. So, your phone will prompt a box for entering the pairing code. Pairing up with the Bluetooth module is a one time task.

Amarino Nano (9)

Enter the pairing code: 1234

After entering the pairing code, you will see the Bluetooth module listed on the Amarino application.

Amarino Nano (5)

Press Connect button to make Bluetooth connection between your phone and the Bluetooth module. As soon as the phone and module are connected, the red LED on the module stops blinking.

Step 6: Install this application for controlling the LED lamp.

LED lamp

Step 7: Enter the MAC ID of the Bluetooth module that you noted down in the previous step. In this example, it is 98:D3:31:70:35:94. Then, press Set Device ID.

Android Lamp (2)

Step 8: After you enter the MAC ID of the Bluetooth module, you will reach to this interface. Bluetooth module will be connected automatically to the Bluetooth of your phone.

Android Lamp

Step 9: Control the LED lamp with the slider and simultaneously control it with ANY remote control.

Watch the video below:

Where can you buy ?

buildcircuit      etsy

Control the lamp using general Android application

There are hundreds of applications on Google Play that have been made for Arduino and Android application. You can pick up any of those apps and control the LED lamp.

In this example, we have picked up this application which transmits text ‘h’ every time the green button is pressed. We have programmed it in such a way that the LED lamp is switched on if the Arduino gets an ‘h’.


TIP: If you want to know what text a random Android app sends to Arduino, you can check out this tutorial. The tutorial shows you what Arduino receives from the phone and what Arduino sends to the phone. See this video also.


The lamp is fully programmable. So, you can use your regular Arduino programming interface to program the lamp in anyway you want. Please remember to switch off the red DIP Bluetooth switch while programming, otherwise, the chip cannot be programmed. You should switch it back again after the chip has been programmed. 

Step 1: Install this Android application from Google Play.

external app

Step 2: Upload this sketch to your Arduino. This sketch is for controlling the lamp with Android app and infrared remote control at the same time. If you want to exclude the infrared sensor, you can upload this sketch. You can use an FTDI basic breakout board to program the kit. The breakout board is included in the kit package.

If you intend to control the lamp with infrared remote control, then, you need to download the library and copy it to the libraries folder of Arduino.

Download Infrared sensor library from the original link 

Step 3: Open the Android application and search for the Bluetooth module stacked on the circuit board. Pair up the module with your Android application. Pairing code= 1234. You need to pair up with the module only once.

Step 4: Switch on/off the lamp with the application. You can simultaneously control the lamp with your infrared remote control also.

Watch the video below:


Three interesting experiments:


Related documents: 

 Where can you buy ?

You can buy the lamp on www.buildcircuit.net, Ebay and Etsy.

buildcircuit      etsy

Amarino Lamp- Assembly tutorial

Recommended app

If you come to this page randomly from a search engine, please check this page first, you will eventually come back to this page.

About Amarino Lamp

This post shows you how to assemble the Amarino lamp. The kit package includes the following components. Click on the links of the components the components below to see how the components have been assembled on the circuit board.

You will need basic soldering knowledge to assemble the kit. The assembly process is very straight forward, you can easily guess which components to solder where on the PCB. The silkscreen labels are very clear and directs you to assemble the board properly.

  1. 1 x Bare PCB with silkscreen indicators. (click on the links to see the assembly images)
  2. 2 x 22pF ceramic capacitors  (step 1)
  3. 1 x 0.1uF ceramic capacitor   (step 2)
  4. 1 x 16Mhz crystal oscillator   (step 3)
  5. 1 x 1N4001 diode                  (step 4)
  6. 1 x 3mm LED                         (step 5)
  7. 1 each x 10K and 1K resistors (step 6) 
  8. 1 x TSOP4838 infrared sensor (step 7)
  9. 1 x tactile reset switch             (step 7)
  10. 1 x 500mA PTC resettable fuse (step 8)
  11. 1 x 1P DIP switch  and 1 x SPDT switch (step 9)
  12. 1 x 4 pin female header            (step 10)
  13. 1 x 28 pin DIL socket                (step 11)
  14. 1 x 16 pin DIL socket                (step 12)
  15. 1 x 6 pin male header for FTDI basic breakout board (step 13)
  16. 2 x 10uF electrolytic capacitor (step 14)
  17. 1 x DC barrel                             (step 15)
  18. 1 x LM7805 with heat sink       (step 16)
  19. 1 x LED lamp                             (step 17)
  20. 1 x Bluetooth module               (step 18) (you need to stack this Bluetooth module while using the kit)
  21. 1 x ULN2003 and 1 x Atmega328P with Arduino Bootloader (Insert these chips in the respective DIL sockets)

Documents: 

Where can you buy ?

buildcircuit   etsy

Using phone features with Amarino lamp

In this post…

“Make the lamp respond to orientation sensor, light sensor and phone call”


Amarino lamp responding to Phone call


About Amarino Lamp

Amarino toolkit is a versatile Android application for experimenting Android-Arduino communication via Bluetooth. You can test some of the features of the Amarino toolkit application with Amarino lamp also. For example, you can make the light turn on/off/dim based on the light sensor, orientation sensor, compass, battery level data of your phone.

You can also make the lamp respond to your phone calls and SMS.

There is a list of events on Amarino application that you can test with the lamp.

amarino events (8)

 Step 1: Upload this sketch to your Amarino Lamp. Remember to turn off the Bluetooth switch(the red color 1P DIP switch)

Step 2: Stack the Bluetooth module over the 4 pin female header on the Amarino lamp circuit board. Turn on the Bluetooth switch. You will see a red LED blinking on the Bluetooth module.

Android-Arduino Lamp

Step 3: Turn on the Bluetooth of your phone.

Amarino Nano (2)

 Step 4: Install and open the Amarino main application. 

amarino events (1)

Step 5: Select Add BT Device. It will display the Bluetooth module you have stacked over the Amarino Lamp.

amarino events (2)

Step 6: Select the MAC ID of the Bluetooth module. It will prompt a box for entering the pairing code. Enter 1234 for the pairing code. This code has to be entered only once.

Amarino Nano (9)

Step 7: You will then see the Bluetooth module listed on the Amarino application interface.

amarino events (3)

Step 8: Press one the list for about 2-4 seconds, it will display “Show Events”. Press Show Events. 

amarino events (5)

 Step 9: Then, you reach this interface. Press Add Event, you will see a list of events available with the Amarino application.

amarino events (6)    amarino events (8)

Step 10: Select any Event you like. For example, I select Light Sensor. When you press save, you will reach an interface that displays the light sensor sensed by the Amarino application.

amarino events (9)   amarino events (10)

 You can see that the Light sensor data is shown under ID: ‘A’. So, you Android sketch should also have code that responds to ID: A. You can check the Arduino sketch, you will see a line:

meetAndroid.registerFunction(valuesensor, A);

So, you cannot add another event unless you edit the Arduino sketch.

Step 11: If the light sensor data is not displayed, press the display for about 2-4 seconds, you will get message box, where you have to select, Force Enable.

amarino events (11)

After you press Force Enable, you will see something like this:

amarino events (12)

 Step 12: Go back to the Amarino interface where you see the list of Bluetooth module and press Connect.  As soon as the application connects with the Bluetooth module, the red LED on the Bluetooth module stops blinking.

amarino events (14)

Step 13: When you block the light falling on the phone, the LED lamp dims the light intensity. The lamp responds to the light falling on your Smart phone.

Watch this video and see the whole process for light sensor. 

Step 14: Again press on the light sensor data and press Remove and again add another event, for example, orientation sensor or Phone State or Compass Sensor. You will notice that the lamp responds to all the events on the Amarino application.

Watch the video for orientation sensor. 

REMEMBER: If you are using ID: A on the Amarino app, the Arduino sketch should also have ID: A on this line: 

meetAndroid.registerFunction(valuesensor, A);

If you are using ID: B, then the Arduino sketch should also have value ‘B’

amarino events (11)

Watch the video below: The following videos show the complete process on how to make the lamp respond to light sensor and orientation sensor of the phone.

Amarino Lamp responding to phone call

Arduino sketch for this experiment


Documents: 

  1. About Amarino Lamp
  2. Assembly Tutorial
  3. Amarino Lamp- Light sensor
  4. Lamp test with different phone sensors
  5. How to program Amarino lamp

Where can you buy ?

buildcircuit   etsy

Amarino Lamp- responding to phone’s light sensor

In this post…

“Make the lamp respond to light sensor of your phone”

About Amarino Lamp (See this article to know about Amarino lamp)

This tutorial is related to my previous article. 

You can use Amarino toolkit application to make a simple dark/light sensor and make the lamp respond to the light present in your room.

For this experiment, we are not describing all the steps because we have described everything on this post. We strongly recommend you to see the main article to know how to use the Amarino application.


“Program Amarino Lamp to respond to phone calls, sms and orientation sensor”


 

(more…)

Assembly Tutorial- 3 Digits – Digital object counter DIY kit

We are now selling CD4026 and CD4029 up and down counter modules.

Step 15- Connect a 9V battery and your kit is readyThis page shows you how to assemble three digit digital object counter. If you are looking for 2 digit digital object counter please see this page.

If you are interested in knowing about this 3 digit counter, please check this page. 

The counter module kit package comes with all the components required to build your kit. Before you proceed, please check if you have all the required components:

  • 1 x TO-92 5V Voltage Regulator(78L05)
  • 3 x CD4026 Decade counter
  • 3 x 16-pin IC socket.
  • 3 x common cathode seven segment display-(Can be in red, yellow and blue colors)
  • 1 x TSOP4838 Infrared sensor
  • 1 x 100uF Capacitor- (Voltage rating can be between 16V to 50V- causes no problem in operation)
  • 2 x 0.1uF 50V ceramic Capacitor
  • 2 x 3mm LED- (can be any color)
  • 1 x BC547
  • 1 x BC557
  • 1 x SPDT Slide Switch
  • 1 x Tactile reset switch
  • 1 x Screw terminal- (can be in blue/green colors)
  • 4 x 1K Ohm Resistor 1/4W
  • 1 x 330R Resistor 1/4W
  • 1 x 10K Ohm Resistor 1/4W
  • 1 x Bare PCB with Silkscreen Indicators
  • 1 x 9V battery connector

Please follow the following steps:

Step 1: Solder 1K Ohm resistors. The color code of 1K ohm resistor is Brown-Black-Red

Click on the image to see the color code more clearly.

Step 1- Solder all the 1K Ohm resistors

Step 2: Solder 10K Ohm resistor and 330 Ohm resistors. The color code for 10K Ohm resistor is Brown- Black- Orange and color code of 330 Ohm resistor is Orange-Orange-Brown.

Step 2- Solder 330 Ohm and 10K ohm resistors

Step 3: Solder 2pcs 0.1uF (code- 104) capacitors.

Step 3- Solder 2pcs 0.1uF(104) code capacitor

Step 4: Solder 2pcs 3mm LED. If you do not know which pin is Anode and which is cathode, please see this. The longer pin is Anode and the shorter pin is Cathode.

Step 4- Solder 2pcs 3mm LED

Step 5: Solder tactile switch. The switch is for resetting the counter. You can see how it work on the video below.

Step 5- Solder tactile switch

Step 6: Solder BC557 PNP transistor.

Step 6- Solder BC547 transistor

Step 7: Solder BC547 NPN transistor

Step 7- Solder BC557 transistor

 Step 8: Solder 5V voltage regulator. The 5V regulator chip is marked as 78L05. It is in TO-92 package.

TO-92 5V regulator

Step 8- Solder 5V regulator

Step 9: Solder TSOP4838 infrared sensor.

Step 9- Solder TSOP4838 infrared sensor

Step 10: Solder SPDT switch. It is used for switching ON/OFF the counter module.

Step 10- Solder SPDT switch

Step 11: Solder 2 pin screw terminal. It is used for connecting a 9V battery to the counter module.

Step 11- Solder 2pin screw terminal

Step 12: Solder 3pcs of 16 pin DIL sockets. These are used for stacking CD4026 chips. Step 12- solder 3pcs 16 pin DIL sockets

Step 13: Solder three seven segment displays and 100uF Capacitor. Please notice the + and – terminal of the capacitor. Solder it correctly.

Step 13- Solder 3pcs common cathode seven segment display

Step 14: Put CD4026 chips over the DIL sockets.

Step 14- Solder 100uF capacitor and insert CD4026 chips

Step 15: Use a 9V battery to operate the kit. Your kit is now ready to use.

Step 15- Connect a 9V battery and your kit is ready
Other related tutorials:


BC-3014A

3 Digit Digital Objects Counter With Laser Module

US $14.95US $19.95
This is 3 digits digital object counter kit

Check out all the counters

COU-18

1.8" Photoresistor And Laser Operated Medium Digital Objects Counter

US $24.95
This is an upgraded version of the previous
SCO-23

2.3" Common Anode Seven Segment Display Driver

US $19.95
COU-902

2.3" common cathode seven segment display driver

US $14.95US $19.95
This is a CD4026 based up counter driver

CD4026- 1 Digit Up Counter Module

US $4.95
  • It works as an UP counter. You can
Sold out
COU-23

Photoresistor And Laser Operated Large Digital Objects Counter With 2.3" Displays

US $29.95
A laser light module illuminates the photoresistor continuously

DC Boarduino- A DIY Arduino

18 Using FTDI breakout board in erect header

If you’ve ever struggled to use a solderless breadboard with an Arduino, you understand how frustrating it can be!

This DC boarduino clone acts just like an Arduino, and works with the latest Arduino software. For many projects it can even be preferable! The kit includes all parts necessary, the assembly is straightforward and well documented.

Since this design doesn’t include a USB chip, you’ll want an FTDI USB 232-TTL cable or FTDI friend. Since the cable plugs right into the Boarduino, you can use one cable for multiple Boarduinos.

Specifications:

  • Designed to plug into a breadboard for easy prototyping
  • Petite size, only 3″ x 0.8″ (75mm x 20mm)
  • All ‘standard’ pins are brought out – Digital 0 thru 13, Analog 0 thru 5, ARef, 5V, Ground, Vin and Reset
  • Chip comes preprogrammed with my “no-wait” Arduino bootloader (Read more here).
  • 2 LEDs, green power and red “pin 13” just like the Arduino!
  • Available as a low cost kit with standard parts, so its never out of stock
  • All through-hole parts are easy to solder
  • Reset button
  • Atmega328 chip has twice as much storage, runs at 16.00 MHz, just like the latest Arduino. Upload baud rate is 57600, use Arduino IDE v13+ (note that the product photo above hasn’t been updated)
  • 6-pin standard ICSP header
  • Standard 2.1mm DC jack (just like the original) with 5V regulator to run on 7V-17V power
  • 1N4001 diode protects against using incorrect wall adapter
  • 6-pin header at the end for a USB-TTL cable
  • Auto-reset capability when used with a USB-TTL cable

Does not include breadboard, pick up one of those in our shop!

Schematic:

boarduinosch

Documents: 

Assembly Images:

Disclaimer: This is DC boarduino designed by Adafruit. We have made this utilizing the open source hardware policy. The design files are available on this page.

 

 

 

 

 

 

MQ-3 Alcohol Sensor, Breakout Board + Arduino

A lot has happened since our last article was published and to celebrate the continuance of bildr we’ll be playing with the MQ-3 Alcohol Gas Sensor. Coupled with the SparkFun Gas Sensor Breakout Board, connecting the MQ-3 to your Arduino is a breeze.

How to troubleshoot WTV020SD-16P music module

We test all the WTV020SD-16P modules before we ship to our customers. We check all the modules using WTV020SD-16 Evaluation kit. Please check the video below:

If your WTV020SD-16P music module is not working properly, please check these:

Download more AD4 format files. (RECOMMENDED)

  • Use a SANDISK 2GB MicroSD card. The modules does not work with 1GB or any other memory cards.

You can purchase a 2GB SANDISK microSD card at buildcircuit.net. You don’t need to format the MicroSD card.

A recent experiment done on 15.6.2014 from our customer has shown that a Kingston 512MB microSD card also worked with the module. So, we also recommend you to test with that.

  1. Start with this basic experiment: http://www.buildcircuit.com/mp3-mode-circuit-wtv020sd-16p-tutorial/
  2. DO NOT use 5V power supply for the project. 5V will burn both your MicroSD card and the music module.
    Use 3.3V power supply only. You may use a 3.3V regulator chip or get power from Arduino.

Problem: MicroSD card does not fit on to the module:
If your MicroSD card does not fit on the module card case, simply push the card bit harder. It goes inside the case with a ‘tick’ sound.

Other important points:

a. Micro SD card: Use a 2GB SANDISK MicroSD card. I have tested with 1GB card, but it didn’t work.  Some customers have said that the module also worked with Kingston 512MB MicroSD card. You can buy a SANDISK 2GB micro SD card from our store.

b. Music file format: *.AD4.

c. File names: 0000.ad4, 0001.ad4, 0002.ad4 and so on. Download Sample Files

d. After youmake the first circuit on a breadboard, press the NEXT or PREV switches for at least 5 seconds. If all the connections are correct, your music will play.

e. Try this experiment first: http://www.buildcircuit.com/mp3-mode-circuit-wtv020sd-16p-tutorial/

f. Read this article carefully: http://www.buildcircuit.com/how-to-use-wtv020sd-music-module-with-arduino/

DO NOT use 5V power supply for the project. 5V will burn both your MicroSD card and the music module. Use 3.3V power supply only. You may use a 3.3V regulator chip or get power from Arduino.

Amarino shield- CD4094 control with Arduino- WITHOUT SMART PHONE

Fully assembled kit (4)

This is the first experiment for Amarino shield. If you do not know anything about Amarino toolkit or this shield please click on the following links:

  1. About Amarino toolkit
  2. About Amarino shield

You can get a list of other experiments at the end of this post.

This experiment has been derived from HEF4794_- Arduino_ Experiment.

This example makes the use of an LED Driver in order to control an almost endless amount of LEDs with only 4 Arduino pins. In this experiment, we use the CD4094 chip. Here, you can get the original version of this experiment: http://www.arduino.cc/en/Tutorial/LEDDriver . The Arduino team has used HEF4794.

An LED Driver has a shift register embedded that will take data in serial format and transfer it to parallel. It is possible to daisy chain this chip increasing the total amount of LEDs by 8 each time. You need to refer to datasheet for connecting more CD4094.

The code example you see here is taking a value stored in the variable dato and showing it as a decoded binary number. E.g. if dato is 1, only the first LED will light up; if dato is 255 all the LEDs will light up.

NOTE:  Switch ON the IC1 -1 P DIP switch. If the switch is off, the 10pcs of LEDs connected to CD4094 will not work.

Arduino Sketch: LINK

Amarino shield in use (2)

Related tutorials:


You can purchase this versatile Amarino shield at buildcircuit.net and Etsy. The store is owned and operated by the team which operates buildcircuit.com.

Amarino shield in use (2)Buy now button buy at etsy


MicroSD card breakout board for Arduino

This is yet another MicroSD card breakout board for Arduino. Previously, we had released a similar MicroSD breakout board on our website. This module is bit cheaper than the previous one, that’s the only difference.

As we all know most of the microcontrollers have  limited built-in storage. For example, Arduino UNO (Atmega328) has 1Kbytes of EEPROM storage and it might not be enough for all projects. If your project has any graphics, video, audio and data logging feature, you need a removal storage in it.

If you are working with some sort of data logging, graphics or audio, you will need at least a Megabyte of storage. In order to get that kind of storage, you need flash cards, or SD or microSD cards. These days, most of the micrSD cards come with minimum 2 gigabytes space in it. You can store data logging files on to your SD card and access the files using inbuilt SD card reader on your computer or using an external reader.

(more…)

Experiment with DHT11 and Arduino

The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed). Its fairly simple to use, but requires careful timing to grab data. The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old. (more…)

How to use 315Mhz RF transmitter and receiver modules with arduino

Description: This wireless transmitter and receiver pair operate at 315Mhz. They can easily fit into a breadboard and work well with microcontrollers to create a very simple wireless data link. Since these are only transmitters, they will only work communicating data one-way, you would need two pairs (of different frequencies) to act as a transmitter/receiver pair.

Note: These modules are indiscriminate and will receive a fair amount of noise.  Both the transmitter and receiver work at common frequencies and don’t have IDs. Therefore, a method of filtering this noise and pairing transmitter and receiver will be necessary. The example code below shows such an example for basic operation. Please refer to the example code and links below for ways to accomplish a robust wireless data link. (more…)

Arduino controlling the WTV020SD-16P Evaluation kit

WTV020SD-16P Evalation kit (3)

This article shows how you can test WTV020SD-16P module using Arduino and WTV020SD-16P evaluation DIY kit. If you have come to this page directly from a search engine, we recommend you to visit these pages to understand this project:

Connecting the WTV020SD-16P evaluation kit to Arduino:

You can see there is a 6 pin female header for connecting the kit to Arduino.

WTV020SD-16P Evalation kit (3)

  • 5V connects to 5V pin of Arduino
  • RST connects to Digital Pin 2 of Arduino
  • P04 connects to Digital Pin 3 of Arduino
  • P05 connects to Digital Pin 4 of Arduino
  • P06 connects to Digital Pin 5 of Arduino
  • GND connects to GND pin of Arduino

After connecting the kit to Arduino, load some AD4 format files on to your MicroSD card. You can Download the AD4 audio sample files. And, then stack the WTV020SD-16P module over the stackable header of the kit. Please note that the LM386 Audio amplifier module and the connected speaker are optional. The speaker connected directly to the kit is sufficient to hear the audio. But, the Audio amplifier module amplifies the sound and you can hear it more clearly.

1

See all the flicker images

SAMPLES FILES 2

Upload the following sketch to Arduino:

Optional Link

The output of the project:

When you upload the sketch to your Arduino, the kit starts playing music one after another. After all the songs are played, it loops back to the first one. Download the AD4 audio sample files.

wtv020sd16p.asyncPlayVoice(0);
plays song 0000.AD4
wtv020sd16p.asyncPlayVoice(1);
plays song 0001.AD4
delay(8000);
Delay sets the duration of song to be played.
wtv020sd16p.stopVoice(); 
This command stops the audio
wtv020sd16p.asyncPlayVoice(0); // plays song 0, 0000.AD4
delay(8000); // play time duration
wtv020sd16p.stopVoice();

– See more at: http://www.buildcircuit.com/arduino-controlling-the-wtv020sd-16p-evaluation-kit/#sthash.V9gJ52Md.dpuf

Related documents:

Assembly Guide- WTV020SD-16P evaluation board- DIY kit

17- The kit in action

This post shows you how to assemble the WTV020SD-16P evaluation board. You can get full description of this kit on this page.

The assembly process is straight forward. It can be easily assembled if you follow the silkscreen indicators(labels) and have beginning experience with a soldering iron. You will need to read the resistor bands or use a multimeter to determine the resistor sizes.

Kit includes:

  • Bare PCB with silkscreen indicators.
  • 4 x reset tactile switch
  • 2 x 10uF electrolytic capacitors
  • 2 x 0.1uF ceramic capacitors
  • 1 x PTC resettable fuse
  • 2 x 3mm LED
  • 1 x DC barrel
  • 1 x 500 Ohm variable resistor
  • 1 x 1N4001 diode
  • 1 x 3.3V regulator chip (L78L33)
  • 1 x LM7805 (5V regulator chip)
  • 1 x TO-220 heat sink for LM7805
  • 1 x 4 pin male header
  • 1 x 6 pin female header
  • 2 x 8 pin female headers for stacking the music module
  • 1 x 470R resistor
  • 1 x 330R resistor

You need would other components that are not included along with the kit package and you need to buy those separately.

Buy these components separately:

You can get full description of this kit on this page.

Now, you can start the assembly process. We have skipped some steps on this post. If you want to see all the steps, please check this tutorial.

Step 1: Solder resistors 330R and 470R.

2- Fix 330R and 470 Ohm

See all the steps

Step 2: Solder 2 pcs 0.1uF ceramic capacitors, 3mm LEDs, 3.3V regulator and 1N4001 diode.

6- Solder 3.3V regulator

See all the steps

Step 4: Solder all the tactile switches.

7- Solder 4pcs of tactile switches

See all the steps

Step 5: Solder 2 pcs 10uF capacitors and 300mA resettable PTC fuse.

8- Solder capacitors and resettable fuse 300mA

See all the steps

Step 6: Solder 500 Ohm variable resistor. The image shows 103 (which is 10K) which is incorrect. We send you 500 Ohm variable resistor.

9 - Solder 500Ohm variable resistr

See all the steps

Step 7: Solder DC barrel, 6 pin female header and 4 pin male header
11- Solder DC barrel

See all the steps

Step 8: Connect a 8 Ohm speaker and solder 2pcs of 8 pin female header for stacking the WTV020SD module.

13- Solder stackable header

See all the steps

Step 9: Solder LM7805 regulator chip.

15- The kit is ready

See all the steps

Step 10: Stack WTV020-16P music module over the female headers. Your evaluation kit for wtv020sd module is ready. Simply, power the board with a 6-9V power supply and play AD4 format music files.

17- The kit in action

See all the steps

Optional:

You can connect an LM386 based audio amplifier to the kit. The amplifier will amplify the audio for you.

Click here to watch the video of the kit with the audio amplifier connected.

Output video:

 Related documents:

Gallery- WTV020SD-16P evaluation board- DIY kit

Search for products

Back to Top
Product has been added to your cart