If this is your first time using 1Sheeld, we recommend you start with the getting started tutorial first to know how to use 1Sheeld.
I/O shields provides simple functions that use your smartphone as on input or output to Arduino.
There are two ways of using I/O shields:
- Using the library
- You may upload a sketch and deal with the I/O Shields, check the examples for more information.
- (Without using the library): You have the option to deal with the 1Sheeld Microcontroller and handle all inputs and outputs.
- Buzzer shield
- GamePad shield
- Keypad shield
- LED shield
- Toggle-Button shield
- Push-Button shield
- Seven Segment shield
- Slider shield
- Get your Arduino board and place 1Sheeld on top of it (check 1Sheeld Adjustment Tutorial).
- Connect a LED to pin 13 on your board.
- Plug the Arduino board to your PC.
- Make sure to check if there is already an uploaded sketch on your Arduino board and the pin you will be using is not set to output in that Sketch.
- Open the application and connect to 1Sheeld.
- Choose the Toggle Button shield and press the CONNECT button on the right side of the screen.
- Swipe your finger on the pins and choose pin 13 (for example), then press CONNECT button again.
- Play with the LED using the on/off button from your smartphone screen.
Basic I/O shields List:
In each Basic I/O shield, there is a button called CONNECT at the right side of the Screen, when you press it, a schematic of arduino board appears.
Slide your Finger over the pins of the Arduino board and choose the pin to be connected to your 1Sheeld.
When using the Seven segment shield, you may choose each segment individually and assign each segment to a single Arduino digital I/O pin by pressing on each segment. Character identifiers for each segment are shown under the Arduino board.
A similar approach works for the Keypad shield, you may assign an Arduino digital I/O pin to a single row or column. With the Game Pad shield, you may assign pins individually to the arrows and buttons.
Note:In case a pin State on 1Sheeld is set to OUTPUT using the Basic Output shields, the same Arduino pins State shouldn’t be set to OUTPUT since it will not work properly then.
For example, If you select the on/off button and connect it to pin 12, do not use pin 12 as output in your sketch.
If the pin is floating or pre-set to input may work according to your application.
Using On/Off Shield directly (without using the library or uploading sketch)
Let’s make a LED goes on and off!