Hey there,
I'm Greg, a software developer, and I've recently started to work with Arduinos. One small project I'm working on is recreating Jack Sparrow's compass from the Pirates of the Caribbean movies. It's part of a larger scavenger hunt project I'm working on.
This famous compass doesn't point north, but rather "to the thing you want most in this world" - and for my project, it will be using a specific coordinate to point to.
I'm using the following hardware for this:
- Arduino Nano v3 clone
- an MPU-9250 nine-axis Inertial Measurement Unit
- GY-NEO-6M v2 GPS module
- Feetec FS90R (continuous rotation) micro servo
- An Infra Red Obstacle Detection sensor
The general idea is that the Arduino initiates the servo to a starting position using the IR obstacle detection sensor, then, it will determine the location via GPS, measure the direction it needs to point based on the IMU's magnetometer that tells us where north is, and rotate the compass dial attached to the servo.
The software part of this is largely done - although determining the position of the servo was a bit of a last-minute thing so I still need to account for that.
Right now, my question is: how to supply power to both the Arduino and the servo, preferably so that I could also include a power switch to switch these on and off at the same time.
My biggest issue is that I have a very limited space to place my hardware in. The original compass looks like this:
My design will replicate this form, and my base is a 10x10 cm octagon-shape that I can work with, with approximately 4cm for the height of the lower part, because that's as high as the servo with the attached compass dial will be. This can be more if needed, but to be honest, the lower part seems quite tall already.
I will attempt to "hide" the GPS module to the upper, folding cover part of the compass, so let's say that only the cables for it would need to go down to the lower part where the rest of the hardware will be.
Obviously, the servo goes to the dead center of the base, and the Arduino nano as well as the IR sensor can go somewhere next to it. Cable management aside, this leaves me with not a lot of space for the power supplies:
Notes:
-
Obviously, it would be nice if the device could be re-chargeable / the power supply could be switched out in an easy manner
-
I understand from reading various posts on this forum that powering the micro servo using the nano's 5V pin is NOT recommended, so I guess this would mean two different power supplies
-
I've looked at mini power banks, but most of what I can buy online would be at least 9cm long, and with the added length of the USB, that would be too long for my base
So, do you have any suggestions for a requirement like this?