Hey guys,
I'm so lost, help me plzzz
I'm a high school student, I'm studying physics and I have no idea about programming or Arduino.
I have a physics project that relys on Arduino.
I have a hall effect sensor and a lcd screen. I need to control the lcd screen by the hall effect sensor.
When a magnet hits the sensor it activates the screen, and two numbers appear on the screen.
As long as there is no contact between the magnet and the sensor the screen is off.
Anyone know how to do this? What's the code of it? Because I have no idea about writing codes...
hey thanks for the guidance,
I have a hall effect magnetic sensor.
I found an example for the display (the "hello world"), and it worked.
About the example for the hall sensor, How can I know that the code I found for it actually works?
Every component has a part number. If you know the part number, then you can try to find the datasheet. With the datasheet you know which leg does what.
Is it soldered on a module ? Is there something written on it ?
There are two types of hall sensors (three):
hall switches, with a output that is either low or high. There are two types: latching and non-latching.
analog linear hall sensors, they output a voltage according tot the strength of the magnetic field.
A Google search for "49E 822BC" found this page. That page also has printing to an I2C LCD. Besides the initialization the commands are the same for a parallel wired LCD.
822BC may be codes for date of manufacture and package type.
I like the hd44780 library for character LCDs (1602, 2004). It is a better and more maintaned library than any of the many LiquidCrystal libraries. The hd44780 library is available through the IDE library manager. There is extensive documentation included with the library.