335
edits
Jenny Soggia (talk | contribs) No edit summary |
Jenny Soggia (talk | contribs) |
||
Line 11: | Line 11: | ||
Next I followed the instructions from Magnetic Hall sensor, thats put up on this MediaWiki | |||
int ledPin = 13; // choose the pin for the LED | *int ledPin = 13; // choose the pin for the LED | ||
int inputPin = 3; // Connect sensor to input pin 3 | *int inputPin = 3; // Connect sensor to input pin 3 | ||
int val = 0; // variable for reading the pin status | *int val = 0; // variable for reading the pin status | ||
void setup() { | void setup() { | ||
Line 34: | Line 34: | ||
*Code was written correctly | *Code was written correctly | ||
*but nothing happend with the sensor (hope I did not break it while using the wrong code | *but nothing happend with the sensor (I hope I did not break it, while using the wrong code from before) | ||
*noticed that there is no need for numbers to show up, the LED on the Sensor should have loght on and off. | *noticed that there is no need for numbers to show up, the LED on the Sensor should have loght on and off. | ||
*did not work | *did not work |
edits