Go to advanced search

by blavery
Thu Jun 01, 2017 3:58 am
Forum: Automation, sensing and robotics
Topic: PiBlynk libraries for RPi - Javascript and Python
Replies: 0
Views: 1269

PiBlynk libraries for RPi - Javascript and Python

I have posted to github: https://github.com/BLavery/PiBlynk a pair of blynk libraries to control the Raspberry Pi from the blynk APP on smartphone. One operates on nodejs (upgraded to V6, and only on armV7). The other runs on any Pi with python or python3. Design targets: * stability in connection t...
by blavery
Tue Feb 23, 2016 10:44 am
Forum: General discussion
Topic: Webiopi doesn't work on Raspberry Pi 2
Replies: 38
Views: 39873

Re: Webiopi doesn't work on Raspberry Pi 2

It is my opinion that persevering with a utility that has had no support since the time of RPI2 introduction a year ago, is asking for frustration. Everything else has moved on.
by blavery
Wed Feb 17, 2016 11:08 pm
Forum: HATs and other add-ons
Topic: NRF24L01+ in Python
Replies: 30
Views: 41459

Re: NRF24L01+ in Python

Hi, I'm overseas currently, so haven;t got access to much. From memory, the PLUS version supports several features the the non-plus does not, including optional data frequency (eg 2MHz) and (I think) the run-time variable-length packet sizing, and attaching return data to the auto-ack reply. I do re...
by blavery
Wed Jan 06, 2016 10:28 pm
Forum: General discussion
Topic: Webiopi doesn't work on Raspberry Pi 2
Replies: 38
Views: 39873

Re: Webiopi doesn't work on Raspberry Pi 2

Ahh, Sorry, That stuff got archived. You can still see it here:

http://www.blavery.com/BotSoftware-RPI/ ... index.html

Check for 15 August entry.
Brian
by blavery
Wed Oct 28, 2015 3:59 am
Forum: HATs and other add-ons
Topic: NRF24L01+ in Python
Replies: 30
Views: 41459

Re: NRF24L01+ in Python

@thezanshow, it's a while since I fired this up. But the data packet of NRF24 is definitely based on a block of bytes. When you want to transfer whatever data variables or data structure (or string text) you are using, you need to "cast" that some way into a list of bytes, then reconstitute it into ...
by blavery
Sun Sep 06, 2015 1:46 am
Forum: General discussion
Topic: Webiopi doesn't work on Raspberry Pi 2
Replies: 38
Views: 39873

Re: Webiopi doesn't work on Raspberry Pi 2

And for anyone who wants, here is my own patched up 0.7.1 -- not official, not guaranteed -- that I have used for a local hobby class. It builds on those other sources/ideas above. http://brian2012class.nfshost.com/where-are-we/ Check under entry for 15 August. It identifies as 0.7.1.p All of my cla...
by blavery
Sat Aug 22, 2015 4:28 am
Forum: Off topic discussion
Topic: Android SSH App "Hot Button" take a look!
Replies: 13
Views: 8977

Re: Android SSH App "Hot Button" take a look!

Oh, This is neat! Definitely going in a good direction. I find typical response time to be about 10 seconds, rather than virtually instant as webiopi or netio can seem. The widget button replies "success" in a couple of seconds, but the action at the target happens (a GPIO LED in my case) in about 1...
by blavery
Sun Aug 02, 2015 9:54 am
Forum: General discussion
Topic: Webiopi doesn't work on Raspberry Pi 2
Replies: 38
Views: 39873

Re: Webiopi doesn't work on Raspberry Pi 2

Oh dear, The doublebind patch (post above) works in some cases. It is almost identically a re-work of the patch at https://github.com/acrobotic/Ai_Demos_RPi/tree/master/demos/gpio, which similarly works in some cases. Take a look at the patch they both offer for board version detection (in file .......
by blavery
Wed Jul 29, 2015 10:52 am
Forum: HATs and other add-ons
Topic: Waveshare spotpear 3.5 inch touch screen help!
Replies: 67
Views: 82453

Re: Waveshare spotpear 3.5 inch touch screen help!

Onscreen virtual keyboard? You could try matchbox-keyboard or more probably florence. I found them fiddly, and a real keyboard is easier. Backlite / dimming? My setup is dismantled, so I can't try, but I thought it blanked just as the regular screen would. But there is no provision I can see for ful...
by blavery
Mon Jul 06, 2015 1:22 pm
Forum: General discussion
Topic: Waveshare 3.2" LCD V4 and Raspberry pi 2
Replies: 22
Views: 18931

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

On a current Raspbian,
why won't simply fetching waveshare32b-overlay.dtb from
https://github.com/swkim01/waveshare-dtoverlays
into /boot/overlays,
followed by adding its "dtoverlay" reference into /boot/config.txt,
be enough to fire up a waveshare32 hardware as /dev/fb1?
by blavery
Mon Jul 06, 2015 12:09 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Python driver for 2.4" SPI 240x320 LCD touch
Replies: 7
Views: 8342

Re: Python driver for 2.4" SPI 240x320 LCD touch

A few more thoughts on using this device. The 320x240 desktop is small, and using the device as an auxiliary touchscreen instead of main desktop still appeals. If I now removed the ads7846 driver from /boot/config.txt and went back to my own python coded version of touch driver above, but still kept...
by blavery
Sun Jul 05, 2015 1:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Python driver for 2.4" SPI 240x320 LCD touch
Replies: 7
Views: 8342

Re: Python driver for 2.4" SPI 240x320 LCD touch

And the totally other way to get this device going is by framebuffer. The following worked for me. Start with CURRENT Raspbian. We can then use the waveshare32b (not included) driver as the same chips are used. 1. Set up the GPIO pins to match what the plug-on-top waveshare 3.2inch device would use:...
by blavery
Wed Jul 01, 2015 11:01 pm
Forum: HATs and other add-ons
Topic: Waveshare spotpear 3.5 inch touch screen help!
Replies: 67
Views: 82453

Re: Waveshare spotpear 3.5 inch touch screen help!

It gets easier. 1. From "/etc/modules"I removed both the flexfb and the fbft_device entries. 2. In "/boot/config.txt" I removed the ads7846 overlay line. 3. I replaced all that with a piscreen overlay in config.txt: dtoverlay=piscreen,rotate=90,speed=32000000 4. In "/boot/cmdline.txt" as per Juho. (...
by blavery
Mon Jun 29, 2015 3:19 am
Forum: HATs and other add-ons
Topic: Waveshare spotpear 3.5 inch touch screen help!
Replies: 67
Views: 82453

Re: Waveshare spotpear 3.5 inch touch screen help!

Taox (for finding), and Juho at the futureice.com blog, thank you. Why did I not find this "recipe" earlier? Works a treat. (Just didn't need to do any special updates from github at start, now that fb code is in current Raspbian.) There seems to be on the net a large and frustrating quantity of obs...
by blavery
Thu Jun 25, 2015 12:26 pm
Forum: General discussion
Topic: Webiopi doesn't work on Raspberry Pi 2
Replies: 38
Views: 39873

Re: Webiopi doesn't work on Raspberry Pi 2

Disclaimer: I haven't tried @konglingboy's "fix" ... But it looks to me like it might simply change WEBIOPI from RPI(1) specific to RPI2 specific. So that would mean I can't take that SD card and move it from a RPI2 to a RPI(1) ??? I think I won't use WEBIOPI for the moment. It's now getting a bit b...
by blavery
Thu Jun 25, 2015 7:06 am
Forum: HATs and other add-ons
Topic: NRF24L01+ in Python
Replies: 30
Views: 41459

Re: NRF24L01+ in Python

I suggest you must be using the early instructions in the very first posting above, on how to adjust jpbarracca's beaglebone version, and haven't fully corrected for RPi pin addresses. Those references are beaglebone pin references! If instead you look at the github files (my later post 28 Nov 2014 ...
by blavery
Wed Jun 17, 2015 11:41 pm
Forum: Python
Topic: GUI to find raspberry IP address
Replies: 40
Views: 5238

Re: GUI to find raspberry IP address

Hmmm, ... all of which seems like a lot of fuss just to read what RPIs exist on the local network. There are fine GUI net scanners already out there. On this page http://brian2012class.nfshost.com/headless/ are mentioned several different versions of IP scanner that I use with a RPI/robotics class h...
by blavery
Mon Jun 08, 2015 2:57 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29897

Re: OLED Display 128x64 python library

@supra,
That's good news.
And you ought to find a way to post up the working code of your project using that oled device so others can benefit too. :-)
by blavery
Sun Jun 07, 2015 10:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29897

Re: OLED Display 128x64 python library

@supra, 1. "I am using 1.3" oled instead of 0.96". Doesn't is matter or not?" Of course it ... matters. They use different driver chips (0.96" SSD1306 / 1.3" looks like SSD1106?? SH1106?? -- I suspect very similar chip, but probably not identical, and certainly not checked by me.) All bets are off. ...
by blavery
Sat Jun 06, 2015 11:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29897

Re: OLED Display 128x64 python library

You could cross-check on the (updated yesterday) README at github:
https://github.com/BLavery/lib_oled96
for how to get SMBus working on both python and python3.
Maybe that might help?
by blavery
Thu Jun 04, 2015 12:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29897

Re: OLED Display 128x64 python library

Joan,
As I knew you would be,
you are right.
... i2c-dev in modules, then use devicetree settings.
B.
by blavery
Thu Jun 04, 2015 9:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29897

Re: OLED Display 128x64 python library

Thanks Joan,
A hybrid?
So if I put i2c-dev in modules file, and then use device tree otherwise, it should go?
I'll try it later.
B
by blavery
Thu Jun 04, 2015 5:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29897

Re: OLED Display 128x64 python library

I indicated earlier there appeared to be three or more issues. Here are the answers that I found: I start with a fresh Raspbian image 5/5/2015 from the foundation's download page. I used a RPi(1)-B hardware. 1. I2C issues I find no way to get i2c to appear as a device ("ls /dev") using raspi-config ...
by blavery
Mon Jun 01, 2015 10:02 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29897

Re: OLED Display 128x64 python library

OK, Well in that case it's mainly an issue of an instruction or two that need python2 -> python3 tweaks. (probably more precisely coercing the various data arriving at lines 56 / 63 into correct list format.) I'm not in a position immediately to check it out. Got a few things happening around here j...
by blavery
Mon Jun 01, 2015 6:04 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29897

Re: OLED Display 128x64 python library

Hmmm, there seem to be several issues here. Firstly let me state my raspbian image used for testing is an update-update-update of an early image 7 Jan 2014, updated repeatedly through to current! It has collected smbus and PIL etc along the way. The point of that is, installing packages now just mig...

Go to advanced search