Go to advanced search

by Niccolo
Sun Oct 14, 2018 10:55 pm
Forum: Automation, sensing and robotics
Topic: Python driver for the GY-273 QMC5883L 3-Axis Magnetic Sensor
Replies: 0
Views: 558

Python driver for the GY-273 QMC5883L 3-Axis Magnetic Sensor

Someone is selling the QMC5883L chip stating that it is compatible with the HMC5883L, it seems that it is not! After trying several pieces of code found on the net, nothing was working on my Raspberry Pi , running Raspbian Stretch and a QMC5883L breakout labeled GY-273 . So I got the Datasheet and I...
by Niccolo
Sun Oct 14, 2018 10:36 pm
Forum: Advanced users
Topic: GY-271 HMC5883L Compass Returning 0
Replies: 22
Views: 6321

Re: GY-271 HMC5883L Compass Returning 0

Hi to all, I just write here because this post was one of the first I found when searching a driver for the QMC5883L on the Raspberry Pi . Indeed the QMC5883L chip is different , the code for the HMC5883L does not work. Some software I found for the QMC5883L (also published on Pypi.org) does not wor...
by Niccolo
Sun Oct 14, 2018 10:29 pm
Forum: Troubleshooting
Topic: wrong i2c address
Replies: 13
Views: 8995

Re: wrong i2c address

Hi to all, I just write here because this post was one of the first I found when searching a driver for the QMC5883L on the Raspberry Pi . The code posted here is a bit primitive (no check for data ready, no check for overflow), other software I found (also published on Pypi.org) does not work at al...
by Niccolo
Mon Sep 17, 2018 4:47 pm
Forum: General discussion
Topic: Geotagging photos
Replies: 6
Views: 1012

Re: Geotagging photos

Hi to all. For those interested, I wrote a Python script to take georeferenced photograph . It works by sending signals to a running raspistill instance, so the script is compatible with all the cameras supported by raspistill. It gets GPS position talking with a running instance of gpsd , so we hav...
by Niccolo
Mon Sep 03, 2018 2:01 pm
Forum: General discussion
Topic: Geotagging photos
Replies: 6
Views: 1012

Re: Geotagging photos

Hi! I wish to revive this thread because I'm assembling a Raspberry Pi with a Miuzei Camera Module to capture geotagged images . The problem I am facing is how to get sub-second precision . The gpsd daemon - used with the Adafruit Ultimate GPS HAT for Raspberry Pi - gives me one fix point every seco...
by Niccolo
Mon Dec 25, 2017 9:43 am
Forum: Beginners
Topic: Autostart Kodi in Raspbian Jessie
Replies: 7
Views: 78699

Re: Autostart Kodi in Raspbian Jessie

As far as I can understand, Debian Jessie and Debian Stretch (and the derivated Raspbian ones) use the new init system systemd , not the old one sysvInit . So the use of the start/stop script /etc/init.d/kodi and relative /etc/default/kodi configuration file, should be discouraged . We should instea...
by Niccolo
Mon Dec 25, 2017 9:31 am
Forum: Troubleshooting
Topic: Kodi 14.2 Shutdown Functions not available - Raspian
Replies: 19
Views: 25170

Re: Kodi 14.2 Shutdown Functions not available - Raspian

After a fresh install of 2017-11-29-raspbian-stretch-lite I can confirm the solution. Install kodi and policykit-1 packages, create the file /etc/polkit-1/localauthority/50-local.d/50-kodi.pkla with the following contents ( :!: beware that there are errors in the same file in previous posts!): [Acti...
by Niccolo
Mon Oct 09, 2017 11:06 am
Forum: Advanced users
Topic: Raspberry PI 2 Particulate Sensor Project
Replies: 57
Views: 28178

Re: Raspberry PI 2 Particulate Sensor Project

I just bought one of these sensors. It comes with a very small female-to-female ribbon connector. How did you connect it to the Raspberry or breadboard? I just cut one connector from the provided cable and soldered the wires to some dupont female connectors. Here you can see a photo: https://www.ri...
by Niccolo
Mon Oct 09, 2017 11:01 am
Forum: Advanced users
Topic: Raspberry PI 2 Particulate Sensor Project
Replies: 57
Views: 28178

Re: Raspberry PI 2 Particulate Sensor Project

may i ask you why did you chose the 5003 sensor and not a 7003 or a A003? and why not the T model? I just choosed this one because of availability and cost. The alternatives I considered are: PPD42NJ from Kanomax (too much expensive, at 150 US$), PPD60PV-T2 Kanomax (even more expensive!), SDS011 an...
by Niccolo
Wed Feb 22, 2017 7:53 pm
Forum: Advanced users
Topic: Raspberry PI 2 Particulate Sensor Project
Replies: 57
Views: 28178

Re: Raspberry PI 2 Particulate Sensor Project

Nice! did you have any problem with shipment? afaik in italy there's a threshold for taxes from china, that is 22€.. Did you compare results from the sensor to "pubblic" values for pm 10? is it reliable? Hi Massi! A first time I ordered a single piece on eBay, free shipping. The item arrived more t...
by Niccolo
Wed Feb 22, 2017 12:31 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Use a GPIO line to RESET an external device
Replies: 3
Views: 846

Re: Use a GPIO line to RESET an external device

The manual isn't clear, but my reading of it is that the resistor isn't required , but can't hurt. Thank you very much for your reply. So I will leave it connect without the resistor, because the cable is very short (4 cm). By the way I think that my problem (sensor sometimes not responsive at all)...
by Niccolo
Tue Feb 21, 2017 9:20 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Use a GPIO line to RESET an external device
Replies: 3
Views: 846

Use a GPIO line to RESET an external device

Hi to all, I built an air pollution monitoring station using the PMS5003 particulate matter sensor by Plantower. The sensor is connected via the serial line and I'm rather satisfied by its operation, but sometimes at power-on the sensor does not respond, as if it is not connected. Now the PMS5003 is...
by Niccolo
Mon Feb 20, 2017 10:06 am
Forum: Advanced users
Topic: Raspberry PI 2 Particulate Sensor Project
Replies: 57
Views: 28178

Re: Raspberry PI 2 Particulate Sensor Project

I managed to connect a PMS5003 to the Raspberry Pi, it uses the serial line. The sensor was priced at about 30 € for a single piece, from China. I'm pretty satisfied by the graphs I get. I will purchase more sensors soon, and I will compare its reading to evaluate accuracy. I wrote some notes about ...
by Niccolo
Sun Feb 19, 2017 11:55 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Car radio steering wheel commands: read analog inputs
Replies: 4
Views: 1418

Re: Car radio steering wheel commands: read analog inputs

Spiral Cable and Radio Receiver in the picture are simple connectors, no components inside. So I read the resistence values at the radio connector while pressing each buttons and I discovered the resistor values. As you can imagine, it is not possible to detect the simultaneous pression of more tha...
by Niccolo
Fri Feb 03, 2017 6:52 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Car radio steering wheel commands: read analog inputs
Replies: 4
Views: 1418

Car radio steering wheel commands: read analog inputs

Hi to all! I'm searching the best way to read via RPi the steering wheel commands of my old Toyota Yaris (2006), used by the stock radio (which I exchanged with a non-Toyota one, so they are now useless). They do not use the CAN bus or similar digital signals, they use an analog but discrete resiste...
by Niccolo
Sun Jan 03, 2016 8:25 am
Forum: Automation, sensing and robotics
Topic: Remote-controlling thermostat
Replies: 6
Views: 1839

Re: Remote-controlling thermostat

Shorted asks for heat and open doesn't. Of course one would hope that the boiler or whatever was smart enough to not get screwed up if someone turned the circuit on and off repeatedly or something like that. I programmed some hysteresis time into the controlling software: each transition from ON to...
by Niccolo
Sun Jan 03, 2016 8:19 am
Forum: Automation, sensing and robotics
Topic: Remote-controlling thermostat
Replies: 6
Views: 1839

Re: Remote-controlling thermostat

Excuse me, but I can not understand the usefulness of the push button. I probably sleep eludes me and the usefulness. :roll: You are right, I did not explained it! I use the push button to cycle into the thermostat programs: PROG1, PROG2, PROG3, MANUAL ON, MANUAL OFF. This is beacuse if I am at hom...
by Niccolo
Wed Dec 30, 2015 11:43 pm
Forum: Automation, sensing and robotics
Topic: Remote-controlling thermostat
Replies: 6
Views: 1839

Re: Remote-controlling thermostat

Hi, this is a late reply, neverthless if someone is still interested I made a programmable thermostat with the Raspberry Pi. It is controllable via a push button and the LCD display , via a web interface or even via Telegram Messenger (a Whatsapp-like application, but with an API and Python library)...
by Niccolo
Mon Dec 14, 2015 9:24 am
Forum: Beginners
Topic: GPIO push button issues
Replies: 11
Views: 3278

Re: GPIO push button issues

As you can read here http://razzpisampler.oreilly.com/ch07.html, the GPIO has a software resistor which can be configured to be "PULL-UP" or "PULL-DOWN". Without configuring it, the input value will float between 1 and 0 erratically . So adding this code should solve the problem: GPIO.setup(10, GPIO...

Go to advanced search