When using your Arduino or Netduino to connect with the Web and then the “Cloud” you need to use the correct Write and Read requests. In this blog will use the Netduino only because it has a network connector on board, my Arduinos do not have a network connector, and there is a cost to getting one. I do have the Spark though and will get that working shortly. With sensors it is always a good idea to hook up the power, actuator and sensor without the CPU, reason? Well I learned from hard and expensive experience that if you hook up the CPU with the power and everything, the CPU often becomes an expensive fuse.
What is a fuse, we don’t use them much anymore, but a fuse is defined correctly as:
In my experience one might also add:
In this case we will use the CPU, in this case the Netduino, to measure a voltage variation when the series of articles are done, for this blog the Netduino is used to provide power via the micro-USB and the onboard voltage regulator.
Here is the schematic, but it might be difficult to translate if you are not used to working with components, and in general you should draw out circuits even if you can visualize the circuit. Why? Circuits get complicated quickly, like software, but unlike software we have a way to implement the drawings.
Physical Schematic without the CPU in the circuit:
Diagram/Schematic (scroll down to see a physical like schematic)
The schematic is pretty simple, a switch connected to the LED through a 10K resistor. Remember that the Magnet Ring Sensor has a 10K resistor between the S-pin and the unmarked middle pin. To make the circuit work you do need a magnet to close the switch.
In a future blog I will include the Netduino to read the sensor and then connecting the Netduino to the cloud, then a simple app that you can use in the store.
Here are the pictures of my lab, note that the Netduino is used to provide the 5 VDC, ground and mounting platform. I found a magnet on the back of a timer and used that to trigger the magnet ring sensor. This is a simple sensor by the way. However, it is widely used in manufacturing, automotive, refrigeration, security, and so forth.