Go to advanced search

by sgarcia05
Fri Apr 07, 2017 11:33 pm
Forum: Advanced users
Topic: USBRelay on RaspberryPI
Replies: 15
Views: 7665

Re: USBRelay on RaspberryPI

This might be a bit late but to those who purchased these generic USB controlled relays and want to use use them with the raspberry, I have had success with this library https://github.com/pavel-a/usb-relay-hid You might need to install some usb libraries. It can get a list of all found boards and r...
by sgarcia05
Sat Aug 13, 2016 3:37 am
Forum: Advanced users
Topic: rtc_ds1307 - Can't read temp on DS3231
Replies: 4
Views: 1324

Re: rtc_ds1307 - Can't read temp on DS3231

I am not sure if there is a way to read the temperature while the rtc is active, but you could disable and re-enable the module inside the python script. it prints temp in *F and *C call the os to remove the rtc and call it again to add it. I have this on a rev B and a pi zero, it saves on adding a ...
by sgarcia05
Tue Apr 19, 2016 7:31 am
Forum: Automation, sensing and robotics
Topic: Accessing DS3231 Temperature
Replies: 11
Views: 13906

Re: Accessing DS3231 Temperature

Thanks liparis, your python code works, however I needed to modify it slightly, only 2 changes, call os.system to remove the rtc chip read the temperature and call os.system re-enable the rtc chip import smbus import os bus = smbus.SMBus(1) address = 0x68 os.system('sudo rmmod rtc_ds1307') def getTe...

Go to advanced search