Go to advanced search

by mwilliams03
Thu Jul 16, 2020 6:50 am
Forum: Other projects
Topic: GPS and camera
Replies: 5
Views: 381

Re: GPS and camera

Here is guide which does something similar with a Raspberry Pi zero attached to a cap. https://ozzmaker.com/raspberry-pi-embedded-cap-gps-10dof/ It automatically takes pictures every so often and Geo tags as well as records pitch, roll and the direction the photo was taken. Im sure this would be eas...
by mwilliams03
Mon May 25, 2020 5:34 am
Forum: General discussion
Topic: Reliable means of determining directional heading...
Replies: 83
Views: 3182

Re: Reliable means of determining directional heading...

Any IMU can give you a decent heading, as long as it is calibrated for hard iron distortion and it or your cold includes tilt compensation;
https://www.youtube.com/watch?v=QGIiu2uOWeA

You could also look at uBlox's CellLocate for indoor positioning
by mwilliams03
Mon May 25, 2020 4:50 am
Forum: General discussion
Topic: How can I use GPS with Serial while another sensor use it
Replies: 13
Views: 689

Re: How can I use GPS with Serial while another sensor use it

Here are a few examples of how to read the NMEA sentences using Python
https://ozzmaker.com/using-python-with- ... pberry-pi/
by mwilliams03
Thu Oct 24, 2019 4:52 am
Forum: Troubleshooting
Topic: Enabling GPS on Raspberry Pi 0 W
Replies: 4
Views: 540

Re: Enabling GPS on Raspberry Pi 0 W

the easiest way to do it is with raspi-config
http://ozzmaker.com/berrygps-setup-guide-raspberry-pi/
by mwilliams03
Thu Sep 19, 2019 1:41 am
Forum: Beginners
Topic: Raspberry Pi GPS For Wilderness Use
Replies: 8
Views: 795

Re: Raspberry Pi GPS For Wilderness Use

You could also look at this to get some ideas, its a much more compact solution; It includes a GSM module and GPS module which has an inbuilt antenna; http://ozzmaker.com/wp-content/uploads/2019/06/BerryGPS-GSM-PiZero600.jpg We have written a guide for real-time tracking using Initialstate http://oz...
by mwilliams03
Wed Aug 07, 2019 6:55 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: libi2c-dev in buster.. whats changed
Replies: 1
Views: 845

libi2c-dev in buster.. whats changed

libi2c-dev seems to have changed significantly in Buster. Buster now uses V4 , where as it was V3 in earlier version of Raspbian. i2c-dev.h in buster is only 75 lines, older Raspbian versions it was 330 Is this expected? an example function which is missing; static inline __s32 i2c_smbus_read_byte_d...
by mwilliams03
Thu Jul 11, 2019 4:18 am
Forum: Python
Topic: timestamp using GPS - NMEA
Replies: 2
Views: 591

Re: timestamp using GPS - NMEA

here is some code to parse $GPRMC Source http://ozzmaker.com/using-python-with-a-gps-receiver-on-a-raspberry-pi/ import serial port = "/dev/serial0" def parseGPS(data): # print "raw:", data #prints raw data if data[0:6] == "$GPRMC": sdata = data.split(",") if sdata[2] == 'V': print "no satellite dat...
by mwilliams03
Thu Dec 13, 2018 4:58 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 3.5 tft lcd very laggy low frame rate
Replies: 5
Views: 3780

Re: 3.5 tft lcd very laggy low frame rate

Most of the these types TFTs use shift registers and ripple counters. If you look at the back of you TFT, some of the chips should have 74hc4040 or 74hc4094. And these are only rate for about 20Mhz. These means the Pi SPI needs to be running at a low frequency for them to work. And therefore, low FP...
by mwilliams03
Mon Feb 26, 2018 3:42 am
Forum: Beginners
Topic: LSM9DS1 to Dectect Telescope Position?
Replies: 7
Views: 1133

Re: LSM9DS1 to Dectect Telescope Position?

an IMU can be used, but it depends how accurate you need it to be. This is because of the noise these sensors make. " Your telescope isn't moving away from your observatory, so linear accelleration isn't needed. That's three down " This is sort of incorrect. The accelerate can also be used to measur...
by mwilliams03
Fri Aug 25, 2017 3:44 am
Forum: Python
Topic: Write output in same line using python
Replies: 5
Views: 1562

Re: Write output in same line using python

just add a comma at the end

Code: Select all

print ("HEADING  %5.2f \33[1;37;40m tiltCompensatedHeading %5.2f" % (heading,heading2)),
by mwilliams03
Thu Aug 17, 2017 4:21 am
Forum: Other projects
Topic: LED Cube RGB 12x12x12
Replies: 7
Views: 5924

Re: LED Cube RGB 12x12x12

Nice!
What is the actual frames per second if you had to update every LED?




I did something similar but had a problem with update speeds when I went above 1,024 LEDs. Below is 2,048 LEDs on one Pi


Image
by mwilliams03
Mon Apr 10, 2017 4:31 am
Forum: Beginners
Topic: Navit Maps
Replies: 3
Views: 2998

Re: Navit Maps

you can download Open Street maps from here

http://maps9.navit-project.org/

Here is a good guide to get Navit up and running;
http://ozzmaker.com/navigating-navit-raspberry-pi/
by mwilliams03
Tue Apr 04, 2017 3:51 am
Forum: General discussion
Topic: Where to the the PiZ or PiZW in Australia?
Replies: 6
Views: 1208

Re: Where to the the PiZ or PiZW in Australia?

The Pi Hut.
I have purchased five Zeros from them (can only order one at a time) and all arrived to Sydney within 2-3 weeks.
I've never had an issue. The last one I purchased was a Pi Zero W.
by mwilliams03
Fri Mar 31, 2017 3:35 am
Forum: Automation, sensing and robotics
Topic: Issues getting heading from magnetometer
Replies: 2
Views: 789

Re: Issues getting heading from magnetometer

The link you posted works perfectly well for the LSM9DS0.


I haven't worked with the LSM9DS1, but if you look at the datasheet you see that the magnetometer is orientated differently than it is on the LSDM9DS0
by mwilliams03
Tue Feb 28, 2017 3:43 am
Forum: Raspberry Pi OS
Topic: Screenshot?
Replies: 19
Views: 18580

Re: Screenshot?

there is also fbcat. which will capture whatever is in the framebuffer
by mwilliams03
Wed Feb 22, 2017 1:10 pm
Forum: Astro Pi
Topic: Issues with accelero and gyro sensitivity
Replies: 17
Views: 7756

Re: Issues with accelero and gyro sensitivity

I should have posted posted a link to all the code; https://github.com/mwilliams03/BerryIMU/tree/master/python-BerryIMU-gryo-accel-compass I also have a guide here; http://ozzmaker.com/berryimu/ What are the two first bus.write_byte_data() doing ? They enable the gyro and set the scale and ODR. CTRL...
by mwilliams03
Wed Feb 22, 2017 10:21 am
Forum: Astro Pi
Topic: Issues with accelero and gyro sensitivity
Replies: 17
Views: 7756

Re: Issues with accelero and gyro sensitivity

those raw values dont look correct. I merged my code into your code, i am using the LSM9DS0 it has different registers but the math is the same. The below code works for me. I removed all the accelerometer values as you are looking for the Z gyro rotation. There is no calibration, but you should be ...
by mwilliams03
Wed Feb 22, 2017 5:26 am
Forum: Astro Pi
Topic: Issues with accelero and gyro sensitivity
Replies: 17
Views: 7756

Re: Issues with accelero and gyro sensitivity

What is this for? oriY[i] = (oriY[i] - gapZ) * 245.0 / (65536 / 2) To get dps from the gyro, you need to multiple the raw by the sensitivity level in mdps (milli). The table in the datasheet shows for 2000dps it is 70 mdps. So your math would be. raw value x 0.07 = dps more info here; http://ozzmake...
by mwilliams03
Tue Jan 17, 2017 1:50 am
Forum: Troubleshooting
Topic: 3.5 Touchscreen Help
Replies: 2
Views: 1430

Re: 3.5 Touchscreen Help

you could also try the calibration script on this page;

http://ozzmaker.com/enable-x-windows-on-piscreen/
by mwilliams03
Fri Nov 11, 2016 4:13 am
Forum: Automation, sensing and robotics
Topic: Autonomous Navigation With BerryIMU
Replies: 6
Views: 2272

Re: Autonomous Navigation With BerryIMU

The comments above are correct. However, if you are using the compass (magnetometer) to work out the heading.. then it shouldn't drift as it isn't tracked. It will be noisy, but it shouldn't drift. Is the BerryIMU flat? Or.. you are using the code with the tilt compensation? If the IMU is not rotate...
by mwilliams03
Wed Nov 02, 2016 5:33 am
Forum: Troubleshooting
Topic: touch events official touchscreen
Replies: 3
Views: 2817

Re: touch events official touchscreen

you can also use evtest. This spits out raw touch events The below output is from my Official Touchscreen pi@raspberrypi:~ $ evtest No device specified, trying to scan all of /dev/input/event* Not running as root, no devices may be available. Available devices: /dev/input/event0: FT5406 memory based...
by mwilliams03
Tue Sep 27, 2016 5:20 am
Forum: General discussion
Topic: Raspberry Pi 3 PPx Test Pads?
Replies: 4
Views: 2759

Re: Raspberry Pi 3 PPx Test Pads?

I have some basic information here;

http://ozzmaker.com/testing-points-raspberry-pi/

If there is any detailed documentation out there.. I would love to see it.
by mwilliams03
Wed Jul 27, 2016 6:53 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Arduino pro mini i2c slave
Replies: 4
Views: 4027

Re: Arduino pro mini i2c slave

Here is some good code for both Pi and Arduino, short and easy. https://github.com/MikeOchtman/Pi_Arduino_I2C Beaware that there is a well known i2c bug on the Raspberry Pi to do with clock stretching. https://github.com/raspberrypi/linux/issues/254#issuecomment-217047171 http://www.advamation.com/k...
by mwilliams03
Wed Jun 15, 2016 3:37 am
Forum: C/C++
Topic: What is the best IDE for C++?
Replies: 17
Views: 7721

Re: What is the best IDE for C++?

[my two cents] I have used vi and Nano for a number of years, and then about 6 months ago I moved to Geany. I hated it at first, but now I much prefer it. much easier to work with when you have a number of files and copy and past is works great with a mouse. :D I use the X11-forwarding feature in Mo...

Go to advanced search