Getting Started With 1Sheeld

Introduction

This tutorial explains how to get started with your 1Sheeld, if you don’t have a general working knowledge of Arduino and Arduino programming, we recommend you check out the instructions and tutorials on the Arduino website.

Notes:

– 1Sheeld Library works on Arduino IDE 1.0.5+

– 1Sheeld+ based on a BLE “Bluetooth Low Energy” technology which is supported only by devices that has bluetooth 4 , So please check if your device has the technology specially in old android/Iphone devices.

 

Step 1: Gather your materials

  • 1Sheeld
  • Arduino board (UNO-DUE-MEGA or any board with a similar form factor for Arduino shields)
  • USB cable
  • Android Smartphone
  • Breadboard
  • Jumper wires (Male to Male)
  • LEDs
  • Resistors (1kohm)

P.S: you don’t need to buy any sensors because you already have them in your smartphone.

 ———————————————————–

Step 2: Adjust 1Sheeld

Warning! If you have the Arduino Due or any board that works on 3.3V, you must switch your 1Sheeld to operate on 3.3V since it may damage your board. To switch 1Sheeld to 3.3V locate the toggle switch on the top of the board and switch it to the 3.3V position.

Place your 1Sheeld on your Arduino board then plug the Arduino to your laptop or PC.

1Sheeld works on Arduino (Uno/MegaADK/Mega2560/Leonardo/Due).

Please refer to (using 1Sheeld with different Arduino boards tutorial) for more information on adjusting 1Sheeld on your Arduino board.


 ———————————————————–

Step 3: Download 1Sheeld Application onto your smart phone

Our app is available on Apple play store and Google play store

 

apps

 ———————————————————–

Step 4: Download 1Sheeld library

For users having Arduino IDE prior 1.6.2, download 1Sheeld library.

Then, after you successfully downloaded the library, extract the files in Arudino’s library directory “Path\UserName\Documents\Arduino\libraries”.

library directory

 ———————————————————–

Step 5: Write your Sketch

Open Arduino IDE on your computer, write your sketch according to your project and the shields you will use in that project, or you can choose an example from our library’s examples.

Let’s try a simple example of the mic shield, we will use the mic to turn an LED on if the noise in the room exceeds a certain level.

You can open the mic shield example from the examples tab as shown above.

Note: there’s a forced delay inserted in sending any frames from 1Sheeld Library “about 200 msec between each frame sent” to sustain sending/receiving frames between the application and the Arduino.


Or use create.arduino.cc

 ———————————————————–

Step 6: Upload your sketch

Here comes the most important part of the whole tutorial, switch 1Sheeld to the Uploading-mode (this is the switch labeled UART Switch on the board) before you upload your sketch to the Arduino board to avoid serial conflicts between 1Sheeld and Arduino, then press the Upload button in the IDE.

Upload mode is turned on when the UART switch is pushed away from the 1Sheeld logo. Or if you have 1Sheeld+ switch it to the SWS “Software serial” sign that appears on the board. 

 ———————————————————–

Step 7: Once you have completed your upload you need to switch 1Sheeld back to the operating mode

Don’t forget! If you don’t switch the UART Switch back to the operating mode your project will not work properly as you will have no communication between 1Sheeld and the Arduino board.

Operating mode is turned on when the UART switch is pushed closest to the 1Sheeld logo. Or if you have 1Sheeld+ switch it to the HWS “Hardware Serial” sign that appears on the board. 

 ———————————————————–

Step 8: Use 1Sheeld Application

Open 1Sheeld application on your iOS or Android smart phone. The application will first scan over bluetooth for your 1Sheeld, it will take a few seconds and the phone will find it. Once it appears on your screen as 1Sheeld #xxxx, you will be required to enter the pairing code (the default pairing code is 1234) and connect to 1Sheeld via bluetooth.

Note: If you are having trouble please make sure the bluetooth is turned on for your Android phone and that the Android phone is close to your 1Sheeld.

If you get an error message as shown below that your phone cannot find 1Sheeld, press the reset button on 1Sheeld and try again.

Note: Make sure that the UART switch is on the operating mode.

 ———————————————————–

Step 9: Access Shields

Select the shields you would like to use in your Arduino sketch (project) and press on the multiple shields icon at the top right of the app.

In this case, use the Mic shield and have fun prototyping!

For more information on other shields, check out other tutorials for the basic I/O shields, sensors shields, social media shields, communication shields, and special shields.

Refer to the documentation pageto know how to use each shield.

Note:

Rarely the first time playing with 1Sheeld may not work properly so please make sure to upgrade the firmware by pressing the Logo on the application while connected “Blue led on board is steady” and then choose upgrade firmware then press upgrade. “You may also need to check your internet connection before the trial or it will state upgrade error”




Related Blogs

1Sheeld voice recognition shield vs Easy VR3 Shield

1Sheeld Voice Recognition Shield Vs. EasyVR3 Voice Recognition Shield

Ever wanted to control things only with voice commands, like controlling your room lights or a robot kit? Then you are in the right place!  I’m going to make a detailed comparison between our Voice Recognition Shield and the famous EasyVR3 Voice Recognition Shield. I will cover the getting started points for each one till you …

Joystick Shield

1Sheeld Gamepad Shield Vs. SparkFun Joystick Shield

Most of us used to play video games using joystick either on PlayStation or PC. When I started tinkering with Arduino, when I built a robot or a vehicle, I also wanted to control it with a similar joystick, so I got the Sparkfun joystick shield. Today I will make a detailed comparison between our …

Arduino’s SoftwareSerial vs AltSoftSerial: Which library to use with 1Sheeld+ ?

The newer version of 1Sheeld (1Sheeld+) built to support both iOS and Android devices,but not just that …! There’s another secret feature supported to solve the problem of using extra shield/board over 1Sheeld+, and this shield/board have the same way of communication used by 1Sheeld+ (The hardware UART serial pins pin0&pin1) with your Arduino. Exactly …

Top 5 Arduino Voice Control Modules

Ever wanted to talk to your Arduino project? Recently I watched this video of a Harry Potter magic wand that you can command to turn on lights and order food! Disclaimer: I’m not a Harry Potter fan, not a fan of Star Trek or Star Wars either! Total Game of Thrones nerd though, check out …

Data Logger shield

1Sheeld Data Logger Shield Vs. SparkFun SD card Shield

Too many times in the past I wanted to save my sensors’ readings in a file for future analysis, and I didn’t find an easy way till the data logger shields came up. One of the most reliable shields in the market is the Sparkfun data logger shield, and today I will make a detailed …

GPS shield

1Sheeld GPS Shield Vs. SparkFun GPS Shield

Making a tracking system is something that most of us wanted to have in our projects, and with all that modern technology offering us, it can be made very simply with our beloved board “Arduino” and a GPS shield. Today I will make a detailed comparison between our 1Sheeld GPS shield and the SparkFun GPS …