Go to advanced search

by mwilliams03
Thu Sep 19, 2019 1:41 am
Forum: Beginners
Topic: Raspberry Pi GPS For Wilderness Use
Replies: 8
Views: 281

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: 0
Views: 119

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: 163

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: 2307

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: 816

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: 1140

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: 4103

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: 2370

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: 912

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: 611

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: Raspbian
Topic: Screenshot?
Replies: 18
Views: 16735

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: 6105

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: 6105

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: 6105

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: 1229

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: 1904

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: 2012

Re: touch events official touchscreen

you can also use evtest. This spits out raw touch events The below output is from my Official Touchscreen [email protected]:~ $ 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: 2329

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: 3235

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: 6683

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...
by mwilliams03
Thu May 26, 2016 1:34 am
Forum: HATs and other add-ons
Topic: Digital compass with high accuracy
Replies: 3
Views: 6907

Re: Digital compass with high accuracy

it also comes down to how much you want to spend. $10k for a military grade compass or $30 for a "hobbyist" compass. I think you could get very good results with a $30 compass, you would just need to apply a lot of filtering and do some good calibration. Some info here regarding soft and hard iron d...
by mwilliams03
Tue May 10, 2016 6:24 am
Forum: Troubleshooting
Topic: RPi Arduino I2C
Replies: 1
Views: 711

Re: RPi Arduino I2C

by mwilliams03
Tue May 10, 2016 6:05 am
Forum: Automation, sensing and robotics
Topic: How do we get the ADXL345 to output angles?
Replies: 5
Views: 2222

Re: How do we get the ADXL345 to output angles?

some more python code here, which is for a difference accelerometer...but the math should be the same; https://github.com/mwilliams03/BerryIMU/blob/master/python-BerryIMU-gryo-accel-compass/berryIMU-simple.py A snippet that would interest you; RAD_TO_DEG = 57.29578 M_PI = 3.14159265358979323846 #Con...

Go to advanced search