Go to advanced search

by DaveSemm
Tue May 29, 2018 3:45 pm
Forum: The MagPi
Topic: Where to find PDF of The official Raspberry Pi Projects Book - Volume 3 (2018)?
Replies: 2
Views: 667

Where to find PDF of The official Raspberry Pi Projects Book - Volume 3 (2018)?

Here in Africa, PDFs are a lot more practical than printed magazines. I have PDF's of The official Raspberry Pi Projects Book - Volume 1 and 2, but can't find Vol 3. Is this available to download? Where can I find it?

Thanks!
by DaveSemm
Tue Sep 26, 2017 4:42 pm
Forum: Troubleshooting
Topic: Can't connect to MariaDB from external PC
Replies: 3
Views: 1274

Re: Can't connect to MariaDB from external PC

Ah ha - I just noticed that I didn't try creating the section [mysqld] in the my.cnf file in /etc/mysql. I tried it now and it works.

Thanks!
by DaveSemm
Tue Sep 26, 2017 4:41 pm
Forum: Troubleshooting
Topic: Can't connect to MariaDB from external PC
Replies: 3
Views: 1274

Re: Can't connect to MariaDB from external PC

Hi, Yes, but wasn't exactly sure how. /etc/mysql/my.cnf contains this: [client-server] # Import all .cnf files from configuration directory !includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mariadb.conf.d/ I added it to this file, stopped and restarted the server, and got this error: [email protected]...
by DaveSemm
Tue Sep 26, 2017 6:13 am
Forum: Troubleshooting
Topic: Can't connect to MariaDB from external PC
Replies: 3
Views: 1274

Can't connect to MariaDB from external PC

The SD card on one of my Pi's got corrupted when the power went out. It had been running for a few years, so it was running Raspbian Wheezy with an old mySQL database server. I installed a recent Jessie image and installed "mySQL", but it turned out to be MariaDB. I got everything working, and my Py...
by DaveSemm
Tue Aug 29, 2017 6:30 pm
Forum: Troubleshooting
Topic: Pi Zero W HDMI suddenly blurry...
Replies: 0
Views: 185

Pi Zero W HDMI suddenly blurry...

I've been running it headless since setting it up a few weeks ago. At that time the display was fine. But then today it lost its connection to the network, and when I connected it back to the monitor, I saw it wasn't displaying properly - the text is smeared, and it starts a few characters off the l...
by DaveSemm
Sat Jun 17, 2017 10:26 am
Forum: Other projects
Topic: Can't force camera into official Pi Zero case lid
Replies: 5
Views: 1578

Re: Can't force camera into official Pi Zero case lid

Yep. I bought my cameras years ago. When the new version came out I heard it was 100% compatible, including the dimensions, but apparently that didn't include the depth. Not a huge deal - the mounting holes and position of the lens is the same, so all it needed was a square hole.
by DaveSemm
Fri Jun 16, 2017 11:11 am
Forum: Other projects
Topic: Can't force camera into official Pi Zero case lid
Replies: 5
Views: 1578

Re: Can't force camera into official Pi Zero case lid

I got it to fit with a little modification.
by DaveSemm
Thu Jun 15, 2017 9:07 pm
Forum: Other projects
Topic: Can't force camera into official Pi Zero case lid
Replies: 5
Views: 1578

Re: Can't force camera into official Pi Zero case lid

I just looked at pictures of the Rev 2.x boards and the camera module does look flatter than mine. It looks like I'll have to file the hole in the lid square and let the module poke out. The lid has clips and support posts so I think it will still be held firmly in place.
by DaveSemm
Thu Jun 15, 2017 8:41 pm
Forum: Other projects
Topic: Can't force camera into official Pi Zero case lid
Replies: 5
Views: 1578

Can't force camera into official Pi Zero case lid

I just got my Pi Zero W with the official case and tried to put my camera module into the lid, but I can't get it all the way in. It is close, but doesn't clip in and sits crooked. The camera module is Rev 1.3. Is the lid meant for a different version? I vaguely remember the CCCD module being replac...
by DaveSemm
Fri May 26, 2017 6:18 pm
Forum: AIY Projects
Topic: STICKY: Welcome to the AIY Projects forum!
Replies: 42
Views: 19145

Re: Welcome to the AIY Projects forum!

The assistant does seem to think a bit Home centric, doesn't it? You don't need Home to check on what may be holding you up. Check on your Activity controls that the following things are all turned on: 1. Web & App Activity (including "Include Chrome browsing history and activity from websites and ...
by DaveSemm
Fri May 26, 2017 6:16 pm
Forum: AIY Projects
Topic: STICKY: Welcome to the AIY Projects forum!
Replies: 42
Views: 19145

Re: Welcome to the AIY Projects forum!

Finally got it to work - I had Web & App Activity turned on, but missed the "Include Chrome browsing history and activity from websites and apps that use Google services" check box. I noticed this in the in the instructions at https://aiyprojects.withgoogle.com/voice I was going to ask how to make t...
by DaveSemm
Fri May 26, 2017 5:24 pm
Forum: AIY Projects
Topic: STICKY: Welcome to the AIY Projects forum!
Replies: 42
Views: 19145

Re: Welcome to the AIY Projects forum!

I'm in Africa, so I don't get the physical magazine. But I was able to to follow the directions at https://developers.google.com/assistant/sdk/ , and got as far as it understanding what I was saying (it displays it as text and so far always gets it right), but the response is always "Actually, there...
by DaveSemm
Tue May 02, 2017 8:42 pm
Forum: Python
Topic: json.load throws exception on nan
Replies: 4
Views: 540

Re: json.load throws exception on nan

It just occurred to me that so long as I'm manipulating a string, I can always replace "nan" with "0.0". That solves my problem, though it doesn't explain why load and loads are throwing an exception when the response contains a nan.
by DaveSemm
Tue May 02, 2017 7:53 pm
Forum: Python
Topic: json.load throws exception on nan
Replies: 4
Views: 540

Re: json.load throws exception on nan

I've changed it to use json.loads(string) instead of json.load(response object): s = response.read() # Convert to string # s = {"variables": {"lightlevel": 69, "temperature": nan, "humidity": nan, "heatindex": nan}, "id": "1", "name": "sensor_module", "connected": true} jsonList = json.loads(s) But ...
by DaveSemm
Tue May 02, 2017 6:50 pm
Forum: Python
Topic: json.load throws exception on nan
Replies: 4
Views: 540

json.load throws exception on nan

According to the python docs, json.load "understands Nan". My problem is that it is throwing an error. It handles it ok when there is no Nan, e.g.: {"variables": {"lightlevel": 124, "temperature": 25.00, "humidity": 58.00}, "id": "3", "name": "ESP8266E12_03", "connected": true} is fine, but: {"varia...
by DaveSemm
Thu Dec 15, 2016 9:37 am
Forum: Advanced users
Topic: Moving Linux kernel to 4.9
Replies: 289
Views: 93262

Re: Moving Linux kernel to 4.9

Where can I find details about what changes in 4.9 were made for the Pi Zero? Were these just bug fixes, or will they improve performance, add new features, or do something else interesting for the Zero?
by DaveSemm
Tue Nov 22, 2016 6:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can Banggood Tiny RTC work with Pi?
Replies: 17
Views: 3197

Re: Can Banggood Tiny RTC work with Pi?

So everything works now, but I'm a bit mystified at how it works. Using the first set of instructions (from Adafruit), the service that was supposed to set the system clock to the RTC when the Pi booted, instead reset the RTC to 2060/01/01. I undid all of this and tried the 2nd set of instructions (...
by DaveSemm
Mon Nov 21, 2016 5:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can Banggood Tiny RTC work with Pi?
Replies: 17
Views: 3197

Re: Can Banggood Tiny RTC work with Pi?

https://hackingbytes.com/posts/ds1307-rtc-raspberry has some detail for getting the software running with Jessie and systemd. Thanks Dougie, I followed the instructions at the hackingbytes link on a fresh Jessie image just now, and I am now able to read the time from either module, even after compl...
by DaveSemm
Sun Nov 20, 2016 9:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can Banggood Tiny RTC work with Pi?
Replies: 17
Views: 3197

Re: Can Banggood Tiny RTC work with Pi?

Sorry do not think I can help further as I have never removed the fake clock or set up a service just changed 1 file and added the overlay. in Jessie both DS chip work for me. TerryR I'd really appreciate it if you can point me to where you found directions for using the DS1307 on the Pi - I search...
by DaveSemm
Sun Nov 20, 2016 8:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can Banggood Tiny RTC work with Pi?
Replies: 17
Views: 3197

Re: Can Banggood Tiny RTC work with Pi?

As I explained before, I followed the directions to replace the "fake clock" with the RTC. Specifically, I enabled i2c, so that sudo i2cdetect -y 1 ...detects the RTC at ID #68. I added dtoverlay=i2c-rtc,ds1307 to /boot/config.txt I disabled the fake hwclock: sudo apt-get remove fake-hwclock sudo up...
by DaveSemm
Sun Nov 20, 2016 7:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can Banggood Tiny RTC work with Pi?
Replies: 17
Views: 3197

Re: Can Banggood Tiny RTC work with Pi?

Very dodgy unplugging and then plugging on GPIO pin while PI is powered. Also you stated that the PI was reset and did not removed the power so the RTC never switched to the battery backup so leading you on a false trail. When do you apply the hwclock -s to the system as you have not stated how and...
by DaveSemm
Sun Nov 20, 2016 2:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can Banggood Tiny RTC work with Pi?
Replies: 17
Views: 3197

Re: Can Banggood Tiny RTC work with Pi?

I think this is interesting: I removed the 2nd module and reconnected the 1st module without shutting down the Pi: I just pulled the connector out and plugged the 2nd one in - and hwclock returned the correct time! So removing power from the RTC module did not reset the time. I think the Pi is doing...
by DaveSemm
Sun Nov 20, 2016 1:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can Banggood Tiny RTC work with Pi?
Replies: 17
Views: 3197

Re: Can Banggood Tiny RTC work with Pi?

I tried a 2nd module, with exactly the same results. As a sanity check, I checked the SDA and SCL signals on a scope to make sure the Pi really was talking to the module when I did hwclock -r and -w. I don't have a logic analyzer, so I can't interpret what is going on. For that matter, I can't swear...
by DaveSemm
Sun Nov 20, 2016 1:00 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can Banggood Tiny RTC work with Pi?
Replies: 17
Views: 3197

Re: Can Banggood Tiny RTC work with Pi?

If you removed the 5 resistors and 1 diode then you need to make a link between the battery + and pin 3 of DS1307 taking out the battery first. If you have a DVM then check for 3v on pin3 with power removed from the PI. Just look at DS1307 schematic you will see R6 makes a open circuit when removed...

Go to advanced search