Hidden Maze Mapper - Arduino Project Hub
Hidden Maze Mapper - Arduino Project Hub
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ffredrikstridsman%2Fhidden-
maze-mapper-95ca8c)
Ever got stuck on that super difficult hidden maze puzzle? Fear no more and
build yourself an automatic mapping device!
magnetometer (/projecthub/projects/tags/magnetometer)
sensor (/projecthub/projects/tags/sensor)
serial communication (/projecthub/projects/tags/serial+communication)
Maze Mapping
The CAD time was not completely in vain, I still needed small holders for magnets. You
see, obviously the magnetic encoders need to have the magnetic field be perpendicular
to the sensor. All small magnets I own are cylindrical and magnetized with North on one
face and South on the other. 3D-printer to the rescue!
PREVIOUS • •
NEXT
The 3D-printed magnet holders distance the 8mm magnet 1mm from the sensor when it
is touching and this seems to work just fine. Now just put it all together:
PREVIOUS • • •
NEXT
Well, that was the whole build. Almost. There are of course a few more things to do...
Since I own no such multiplexer I started looking at building one, but then I figured there
must be a way to do I2C on regular GPIO pins? Yes, you can. SlowSoftI2CMaster
(https://github.com/felias-fogg/SlowSoftI2CMaster) to the rescue! 10 minutes later I
was reading both sensors from the Arduino Uno.
Electrical connection is too simple for a diagram. 3.3v and GND to both sensors, A2/A3 to
one and A4/A5 to the second (picked the Ax pins just because the default I2C pins are
A4/A5). Maybe there should be a pull-up resistor somewhere, but hey-it-works-tm. :-)
The code is on the Arduino is simple enough. Read the sensors, print on serial:
#include <SlowSoftI2CMaster.h>
void setup(void) {
Serial.begin(115200);
Learnings
The "Grove - 12-bit Magnetic Rotary Position Sensor / Encoder (AS5600)" is
awesome!
I2C is easy to use, but addressing of similar devices can be problematic. If you
wanna I2C, get yourself a breakout board with a multiplexer!
I learned how to read from the serial port on my Mac! One simple command and I
had the data in a file ready to be consumed by any program written in any
language. Zero complexity with weird serial port libraries etc. Debugging with "tail -
f". Beautiful!
CODE
M
a DOWNLOAD (HTTPS://HACKSTERIO.S3.AMAZONAWS.COM/UPLOADS/ATTACHMENTS/1113611/MAG_HOLDER_DNE
g
n
e
t
h
o
l
d
e
r
O
p
e
n
S
C
A
D
mag_holder_DnETVrBSDa.scad
M DOWNLOAD (HTTPS://HACKSTERIO.S3.AMAZONAWS.COM/UPLOADS/ATTACHMENTS/1113612/MAG_HOLDER_KQJP
a
g
n
e
t
H
o
l
d
e
r
S
T
L
SCHEMATICS
S
c
h
e
m
a
t
i
c
DOWNLOAD (HTTPS://HACKSTERIO.S3.AMAZONAWS.COM/UPLOADS/ATTACHMENTS/1113608/IMG_2357_QWVDGL
s
COMMENTS
AUTHOR
(/projecthub/fredrikstridsman)
FOLLOW (/PROJECTHUB/USERS/SIGN_UP?ID=515423&M=USER&REASON=FOLLOW&REDIRECT_
PUBLISHED ON
May 3, 2020
WRITE A COMMENT
Share
(/projecthub/hague)
and 1 other
(/projecthub/samhorne/2016-halloween-laser-maze-2128f6?
ref=similar&ref_id=334962&offset=0)
2016 Halloween Laser Maze (/projecthub/samhorne/2016-
halloween-laser-maze-2128f6?ref=similar&ref_id=334962&offset=0)
Project showcase by Sam Horne (/projecthub/samhorne)
14,336 VIEWS 8 COMMENTS 32 RESPECTS
(/projecthub/musridhorj-yantof-yudanarkoaa-trid/shortest-path-of-line-maze-curved-
and-zig-zag-track-264459?ref=similar&ref_id=334962&offset=1)
Shortest Path of Line Maze - Curved and Zig-zag Track
(/projecthub/musridhorj-yantof-yudanarkoaa-trid/shortest-path-
of-line-maze-curved-and-zig-zag-track-264459?
Project showcase by Team MusridhoRJ YantoF YudanarkoAA TriD (/projecthub/teams/...
4,820 VIEWS 8 COMMENTS 19 RESPECTS
(/projecthub/AnuragVasanwala/windows-10-iot-core-ultrasonic-distance-mapper-
d94d63?ref=similar&ref_id=334962&offset=2)
(/projecthub/AhmedAzouz/arduino-marble-maze-labyrinth-bd9ea6?
ref=similar&ref_id=334962&offset=4)
Arduino Marble Maze Labyrinth (/projecthub/AhmedAzouz/arduino-
marble-maze-labyrinth-bd9ea6?
ref=similar&ref_id=334962&offset=4)
Project tutorial by AhmedAzouz (/projecthub/AhmedAzouz)
19,236 VIEWS 25 COMMENTS 55 RESPECTS
(/projecthub/MakerRobotics/arduino-robot-poliardo-maze-solver-b41341?
ref=similar&ref_id=334962&offset=5)
Arduino robot PoliArdo - Maze solver
(/projecthub/MakerRobotics/arduino-robot-poliardo-maze-solver-
b41341?ref=similar&ref_id=334962&offset=5)
by MakerRobotics (/projecthub/MakerRobotics)
17,082 VIEWS 2 COMMENTS 57 RESPECTS
(https://www.arduino.cc)
Powered by
(https://www.hackster.io)