SmartArduino / XPT

8 stars 0 forks source link

Hall Sensors #2

Open freshrick opened 4 years ago

freshrick commented 4 years ago

Do you have any documentation about connecting the Hall Sensors to raspberry pi? I'm tryin to get odometry data for the robot tank.

Thanks a lot.

KingZuluKing commented 4 years ago

I think the Hall Sensors output logic 5V and therefore you cannot connect them to the Rasp. Pi, which runs on 3.6 Volts (logic). You might need to use a TTL logic level converter IC in between.

Other than that, you just connect them to GPIO aka digital, and then read the logic levels from the S1 and S2 lines. Make sure to keep in mind the order of these connections. Could you please more specify what you are trying to accomplish:

Cheers David

freshrick commented 4 years ago

Hello! And thanks for your reply! I will try it with the GPIO Solution next week. I want to get odometry data to write ROS nodes. I want to combine one of your robots with an ydlidar to make it SLAM. Do you have any Tutorials with arduino to get some odometry data?

This would be very helpful!

Thanks a lot Kristian

Am Mi., 10. Juni 2020 um 21:48 Uhr schrieb Dave Zohrabyan < notifications@github.com>:

I think the Hall Sensors output logic 5V and therefore you cannot connect them to the Rasp. Pi, which runs on 3.6 Volts (logic). You might need to use a TTL logic level converter IC in between.

Other than that, you just connect them to GPIO aka digital, and then read the logic levels from the S1 and S2 lines. Make sure to keep in mind the order of these connections. Could you please more specify what you are trying to accomplish:

Cheers David

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SmartArduino/XPT/issues/2#issuecomment-642220538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN5VPWBODWXUVUQO7D64YE3RV7PP3ANCNFSM4N2DIBNQ .

-- Kristian Friedrich Tel: 0660 7134649 Berufsschule für Elektro-, Veranstaltungs- und Informationstechnik Austria 1060 Wien, Mollardgasse 87 T +43/1/599 16/95 630 oder /95 650 F +43/1/599 16/7256 E kristian.friedrich@bsevita.at office@bsevita.at I www.bsevita.at I www.wiener-berufsschulen.at