Product Description
This is a brick component specially design for the Arduino board, used to detect the presence of a magnet field.
It connects with just three wires to Arduino ( GND and VCC for power, and OUT for the output signal) and it delivers 5V (digital “1”) on the OUT pin whenever there is no magnet present and 0v otherwise.
The GND pin on the brick should be connected to the GND pin on the Arduino board, the VCC pin on the brick should be connected to the VCC pin on the Arduino board, and the OUT pin on the brick should be connected to a digital pin on the Arduino board(do avoid digital pins “0” and “1” and those are used for programming purposes).
The source code is below :
void setup() { Serial.begin(9600); pinMode(7, INPUT); } void loop() { int valoareSenzorMagnetic = digitalRead(7); Serial.print("Senzor magnetic: "); Serial.println(valoareSenzorMagnetic, DEC); delay(100); }
Leave a reply
Returns and Exchanges
There are a few important things to keep in mind when returning a product you purchased.You can return unwanted items by post within 7 working days of receipt of your goods.
- You have 14 calendar days to return an item from the date you received it.
- Only items that have been purchased directly from Us.
- Please ensure that the item you are returning is repackaged with all elements.
Ship your item back to Us
Firstly Print and return this Returns Form to:
30 South Park Avenue, San Francisco, CA 94108, USA
Please remember to ensure that the item you are returning is repackaged with all elements.
For more information, view our full Returns and Exchanges information.
Reviews
There are no reviews yet.