-
Success
05/16/2018 at 23:13 • 0 commentsFOund out mu calculations (basic trig were stuffed!)
Have rectified and did a scan of the cardboard box.
When plotted - I saw the outline of the cardboard box.
The lidars did return a few weird readings (outliers) - I believe I can set the lidars for long range or short range. Going forward will have to consider if the turrent would be used in robotics projects what is the range required - suggestions?
-
Found out the issue with plotting
05/13/2018 at 22:44 • 0 commentsHave an issue with the calculations - Did a scan with a square box over the turrent.
After scanning and running thru the calcs the plot looked like;
-
Progress and a 'Doh!'
05/09/2018 at 20:59 • 0 commentsI have been testing with using the turrent to just scan a corner of my office - on a desk with a screen to the left and 2 corners of the room. I am sitting at my desk within scan range and the rest of the room appears to be out of range.
To test this, I am dumping the data out in .csv format and running it thru excel to perform the calculations to get a x/y coordinate centred on the centre of the turrent.
Had some dumb moments getting the formula correct in excel but eventually got what I believe are the correct x/y which I then produce a scatter plot.
First issue is that the scan steps may be too big - so may have to refine them. Also having difficulty in fully relating what the scan does with reality.
So I decided to simplify things by enclosing the turrent with things like a cardboard box and something circular.
Didn't have a box handy but did find one of my wifes large saucpans (about a foot in diameter (don't tell her please).
DId the scan and the turrent compass data was weird in a lot of readings. Realising that enclosing a electronic compass with a metal shield is probably not the best plan! (That was the 'Doh!' moment.)
Anyway, after taking out the erroneous readings, the plot does show a pretty good circle - so getting there.
Next test will be with a (non ferrous) cardboard box!
-
Brief update
05/07/2018 at 21:18 • 0 commentsIn summary, the hardware is complete.
I have dumped the readings and now have to perform some transformations to convert the readings into x/y coordinates centred on the middle of the turrent.
Unfortuantly, recovery from surgery has taken a tad longer - and perhaps the after-affects of the anasthetic my mind has been a bit fuzzy.
WIll try to get back to it tonite!
-
First set of tests results
05/04/2018 at 07:22 • 0 commentsOK finalised the build (managed to 'obtain' another hmc5883 compass which gave me a set of 2.
Finalised the current servo code.
Integrated the lot and dumped the data into a CSV file.
If you wish to play - go for it!
I did some simple calculations in the data imported into excel and can see the corner of my office with the screen in the corner.
Still a bit of work to do
-
Teeny setback
05/03/2018 at 11:46 • 0 commentsmy original compass was a HMC5883 - I purchases 2 new compasses and started testing.
They didn't work.
After careful checking the supplier has now substituted MAG3110 based compasses - different I2c address and different codes.
Have them working under python now have to decode what the python module is doing and transcribe to C.
(Also just got out of hospital having gallstone removed - so that has slowed me down a tad!)
-
Assembly of final prototype
05/01/2018 at 22:27 • 0 commentsNo picture (as yet) - Sorry.
Made a new prototype and installed turrent compass, and lidars and connected it back to Pi Zero. SHould be getting servo controller today and will replace cludgy pi controlled servo with servo on i2c!
Once again one sensor didn't work - normal issue of SDA/SCL being wrong way around.
Also mounted sensors 90 degrees out of phase - 5 minite job to resite (glad I used mounting tape to temporrarily hold them.
If all goes well, will integrate all my code-stubs together and commence final testing.
Then to set up my github with all the source code - and finalise the documentation here.
-
Added a component
04/30/2018 at 21:53 • 0 commentsI have added one component - an external servo controller (in I2c) - makes life a tad simpler (although it is a bit of overkill - 16 channel servo controller for 1 servo).
Note that I do have an Onion Omega2+ with a servo hat - the trouble is that the Omega seems to have issues with MQTT in particular doing DNS lookup (I don't want to hard code IP addresses) so that is on the back burner for the moment.
-
Minor whoopsie log
04/30/2018 at 21:50 • 0 commentsMinor whoopsie - the compasses are on a fixed address - therefore both compasses will be connected to the I2c port expander and selected in turn.
(for some reason I thought you could add vin to one pin to change I2c address)
Anyway.................
-
Project log - physical construction
04/27/2018 at 11:20 • 1 commentOK Servo and current physical construction complete - POC so ugly as sin!