ArduSensor Switch Quickstart Guide
We can find many different kinds of switches in our everyday life. Light switches for our home are a big example of a switch we use constantly. This specific switch in the ArduSensor Switch is smaller and more compact.
First off, if you don’t know how to solder, go here to learn the basics so that you are thoroughly prepared to assemble your kit.
Parts in Kit:
Qtechknow ArduSensor Switch PCB (Printed Circuit Board)
10K Ohm Resistor - 1/4W
Male Headers (5)
Tools Needed to Assemble:
Rosin Core Solder
Vice or Third Hand
You will need to get on your own:
When using lead, take precautions like:
Assembling the Kit:
Take out the ArduSensor Switch PCB out of the the bag and put face up into a vice or third hand.
Insert the switch into the copper holes corresponding.
Flip the PCB over and put it back into the vice or third hand face down, so that all of the leads show on the back. Bend all of the leads outwards in different directions.
Put your soldering iron on one of the junctions where there is a copper hole, and one of the switch legs popping through it.
Wait three seconds, and then take your solder, touch it briefly to the junction, and then take your soldering iron away. The junction should look something like these volcano shapes:
Repeat this process 2 more times to the other joints with the copper hole and a switch leg popping through it.
Trim the leads with your diagonal cutters, so that they don’t poke you.
Take the 1 pin male header and 4 pin male header, and put them into these Arduino pins: The 1 pin male header goes into A0, and the 4 pin male header goes into VIN, GND, GND, and +5V as shown below in the picture.
Place the ArduSensor Switch on top of these pins, making sure that the 1 pin male header goes into the 1 pin male header socket, and the 4 pin male header goes into the 4 pin male header.
Solder in place. But make sure that you don’t put too much solder in, because that can cause the ArduSensor Switch to be permanently installed on your Arduino!
Wait for the ArduSensor Switch to cool off (around 20-30 seconds), then pull out of the Arduino sockets. Now you are finished soldering your ArduSensor Switch!
If you haven’t downloaded the Arduino IDE, go here to download the latest version. If you haven’t installed drivers for the Arduino (haven’t downloaded the software yet, or haven’t done this step yet), read the following table:
If you have...
No drivers needed, proceed to the next step
Go here, then proceed
Go here, then proceed
Go here, then proceed
Put in your ArduSensor Switch to your Arduino like this: Put the 1 pin male header into A0, and the 4 pin male header in VIN, GND, GND, and +5V.
Plug in your Arduino with your USB cable (USB-B on the Arduino UNO or earlier, and USB-microB for Arduino Leonardo) to your computer. Download this zip file and unzip onto your computer. If you are on a Mac, double click the folder labeled “FishBank-ArduSensor-Switch-Example-Code-f78ead3”, double-click the file named “SwitchRead.ino”, then press OK when the dialogue box pops up. If you are on a Windows computer, press Save instead of Open when you press the download button, double click the folder labeled “FishBank-ArduSensor-Switch-Example-Code-f78ead3”, double-click the file named “SwitchRead.ino,” and then press OK in the pop up box.
The Arduino IDE should open up with the ArduSensor Switch Read sketch. This sketch prints out if the switch is in the on or off position.
First, make sure to select the board that you are using from Tools > Board.
Then, go into Tools > Serial Port, and select the correct COM/Serial Port. On a Mac, the usual Serial Port will be /dev/tty.usbmodemfa131. Any small variation of that will be fine.
On Windows, the COM Port will usually be COM 4, and anything lower or higher might work.
Here are the basic buttons/functions in the Arduino IDE:
Now let’s upload the sketch/code to the Arduino. Plug one end of the cable into your Arduino, and then the other end into your computer. Press the Compile + Upload button (Verify if there is any errors in the code, and then upload the sketch/code onto the Arduino), and the program will run on the Arduino.
Press the Serial Monitor button (in the upper-right hand corner), and you should see that it prints out either “On” or “Off” depending on which way the switch is pushed.
If you have any more questions on this product or how to use it, contact Qtechknow Tech Support at firstname.lastname@example.org