Go to advanced search

by LetHopeItsSnowing
Tue Jun 12, 2018 7:56 am
Forum: Raspbian
Topic: The usbbootgui functiion
Replies: 10
Views: 1195

Re: The usbbootgui functiion

You dont have to do anything with the Pi itself. Although the Pi does have to be a Pi Zero or Pi Zero W. If you have installed the latest Raspbian x86 desktop image on your computer when you connect a Pi Zero (w) without and sd card via USB (connected to the USB on the Pi not the power) your compute...
by LetHopeItsSnowing
Wed May 16, 2018 2:53 pm
Forum: Beginners
Topic: wiring a mouse to Rpi to emulate click
Replies: 3
Views: 412

Re: wiring a mouse to Rpi to emulate click

Absolutely. I would take a mouse, rip it apart and wire either to the button or direct to the circuit board.

You may (very likely) need some sort of "relay" between mouse and the gpio pins, but this could be as simple as a transistor.
by LetHopeItsSnowing
Mon Mar 05, 2018 2:00 pm
Forum: Python
Topic: What is this called ?
Replies: 2
Views: 449

Re: What is this called ?

I call it "list comprehension".
by LetHopeItsSnowing
Thu Oct 26, 2017 3:05 pm
Forum: Automation, sensing and robotics
Topic: How use phone bluetooth to reboot Zero?
Replies: 13
Views: 2501

Re: How use phone bluetooth to reboot Zero?

You could use bluedot http://bluedot.readthedocs.io/en/latest/ - write a simple python script that issues

Code: Select all

sudo reboot
when the blue dot is pressed.
by LetHopeItsSnowing
Thu Oct 26, 2017 3:00 pm
Forum: Troubleshooting
Topic: Official RPi Camera board destroyed by the official RPi0 case
Replies: 21
Views: 3273

Re: Official RPi Camera board destroyed by the official RPi0 case

I haven't had a similar problem. I have had a new camera module mounted in a new pi zero case since they came out with no issues...

Has there been a change in design?
by LetHopeItsSnowing
Mon Oct 23, 2017 8:11 am
Forum: Beginners
Topic: Bluetooth unable to write
Replies: 5
Views: 903

Re: Bluetooth unable to write

I agree with douglas6 - if you want to short cut this process, take a look at the bluedot.btcomm api - its a lot simpler to use than python-bluetooth (IMO).

Then have a look at the BlueTerm app on Android - its really easy to use serial terminal.
by LetHopeItsSnowing
Fri Oct 20, 2017 9:38 am
Forum: Beginners
Topic: Bluetooth unable to write
Replies: 5
Views: 903

Re: Bluetooth unable to write

I recently create a bluetooth remote and in the end I gave up using python-bluetooth, I found it to be unreliable and outdated. In the end I rolled my own bluetooth comm api using sockets and bluez via dbus. If you want to give it a go, you will find instructions it at: http://bluedot.readthedocs.io...
by LetHopeItsSnowing
Wed Sep 20, 2017 7:51 am
Forum: Python
Topic: GPIOZero - 2 fonction for same GPIO ?
Replies: 17
Views: 2549

Re: GPIOZero - 2 fonction for same GPIO ?

Yes. Its a little 'hidden' in the documentation but it is there. Its actually part of the EventsMixin which is inherited by DigitalInputDevice which is inherited by Button! There is a clue on the held_time property of button https://gpiozero.readthedocs.io/en/stable/api_input.html#gpiozero.Button.he...
by LetHopeItsSnowing
Tue Sep 19, 2017 8:29 am
Forum: Python
Topic: GPIOZero - 2 fonction for same GPIO ?
Replies: 17
Views: 2549

Re: GPIOZero - 2 fonction for same GPIO ?

You need to use the same Button object for both the pressed and held events. i.e.there is only 1 button so you only have 1 object. from gpiozero import Button from signal import pause import pyautogui def send_l(): pyautogui.press('left') def send_r(): pyautogui.press('right') def send_u(): pyautogu...
by LetHopeItsSnowing
Sun Sep 10, 2017 9:17 pm
Forum: Raspbian
Topic: Bluetooth - RFCOMM channel 3 already in use
Replies: 2
Views: 895

Re: Bluetooth - RFCOMM channel 3 already in use

Thanks for the info.
by LetHopeItsSnowing
Sun Sep 10, 2017 9:00 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting BlueDot to connect
Replies: 2
Views: 1031

Re: Trouble getting BlueDot to connect

Also, are you using a recent version of Raspbian? I would definitely upgrade to Raspbian Stretch.

I found that some of the earlier version of Raspbian really didnt handle bluetooth very well. Older versions of bluez I think were mainly to blame.
by LetHopeItsSnowing
Sun Sep 10, 2017 8:55 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting BlueDot to connect
Replies: 2
Views: 1031

Re: Trouble getting BlueDot to connect

It sounds like your Pi and Android phone aren't pairing properly. Are you pairing using the command line (bluetoothctl) or via the GUI? If you have tried one, try the other, I have experienced problems where linux wont pair via one route, but it will the other! Out of interest, what phone are you us...
by LetHopeItsSnowing
Sat Sep 09, 2017 7:15 am
Forum: Raspbian
Topic: Bluetooth - RFCOMM channel 3 already in use
Replies: 2
Views: 895

Bluetooth - RFCOMM channel 3 already in use

I am doing some testing on my Blue Dot project (http://bluedot.readthedocs.io/en/latest/) and specifically using multiple dots. One of the things I have noticed is that RFCOMM channel 3 is already in use (by something). The error Python gives when trying to create a socket on channel 3 is: OSError: ...
by LetHopeItsSnowing
Tue Aug 15, 2017 2:58 pm
Forum: Python
Topic: Bluetooth (Blueterm app) Help!!
Replies: 6
Views: 2293

Re: Bluetooth (Blueterm app) Help!!

A module I have written "blue dot" http://bluedot.readthedocs.io/en/latest/ has a simple to use bluetooth comms api included in it, which might be easier to use. You would have to install blue dot http://bluedot.readthedocs.io/en/latest/gettingstarted.html , pair your Pi and your Phone [http://blued...
by LetHopeItsSnowing
Tue Aug 15, 2017 2:50 pm
Forum: Python
Topic: Bluetooth (Blueterm app) Help!!
Replies: 6
Views: 2293

Re: Bluetooth (Blueterm app) Help!!

You will have to pair your Raspberry Pi and phone to allow Blue Term connect.
by LetHopeItsSnowing
Tue Aug 15, 2017 2:48 pm
Forum: Python
Topic: Bluetooth (Blueterm app) Help!!
Replies: 6
Views: 2293

Re: Bluetooth (Blueterm app) Help!!

Have you tested the program you have written?

What should happen is that it should run and wait for a connection.

When something (in this case the BlueTerm app) connects, the program will go into a loop sending the message to the app.

Is this what happens?
by LetHopeItsSnowing
Mon Aug 14, 2017 7:27 am
Forum: Python
Topic: Bluetooth (Blueterm app) Help!!
Replies: 6
Views: 2293

Re: Bluetooth (Blueterm app) Help!!

Out of interest - what are you trying to do? If you want to send data to the client (the blueterm app in this instance) you can use: server_socket.send("hi") It might also be worth putting a new line at the end: server_socket.send("hi\n") Whether the blueterm app is listening and will write data to ...
by LetHopeItsSnowing
Sun Jul 23, 2017 4:55 pm
Forum: The MagPi
Topic: #59: Blue Dot
Replies: 6
Views: 4072

Re: #59: Blue Dot

No - Bluetooth wont stretch to mars! One of the tests I did when creating Bluetooth was ensuring that the app & library handled a close of connection in the event of a loss of signal. However I couldn't get it to lose connection, the length of my house and garden wasn't long enough. So after putting...
by LetHopeItsSnowing
Tue Jul 18, 2017 8:25 am
Forum: Troubleshooting
Topic: windows cannot access raspberrypi
Replies: 6
Views: 2370

Re: windows cannot access raspberrypi

Is windows firewall restricting access?
by LetHopeItsSnowing
Sun Jul 02, 2017 7:41 pm
Forum: The MagPi
Topic: #59: Blue Dot
Replies: 6
Views: 4072

Re: #59: Blue Dot

Please share or create an issue in the Blue Dot repository for an enhancements. I'll see if they fit into the a future version.
by LetHopeItsSnowing
Sun Jul 02, 2017 6:18 pm
Forum: The MagPi
Topic: #59: Blue Dot
Replies: 6
Views: 4072

Re: #59: Blue Dot

I'm really pleased you found it useful.

If you haven't already take a look at the docs, there is lots more to discover http://bluedot.readthedocs.io/en/latest/

Martin
by LetHopeItsSnowing
Mon Jun 19, 2017 10:33 am
Forum: Advanced users
Topic: Bluetooth multiple USB dongles
Replies: 4
Views: 2268

Re: Bluetooth multiple USB dongles

Im not sure if this is your problem, but I have seen in the past that with cheap USB dongles they re-use MAC addresses. i.e. 2 usb dongles have exactly the same MAC address, presumably its one of the ways they make them so cheap. Try plugging them in one at a time and checking the address.
by LetHopeItsSnowing
Mon Jun 19, 2017 10:29 am
Forum: Beginners
Topic: can I do this with rp-B?
Replies: 5
Views: 1058

Re: can I do this with rp-B?

This sounds like a doable project... However I know nothing of AC units (being from the uk, we rarely have days warm enough to worry!). You seem to know how to get an input from your AC unit when it switches on / off, so I would hook this up to a GPIO pin on a Raspberry Pi (either via a relay or opt...
by LetHopeItsSnowing
Sun May 14, 2017 8:45 pm
Forum: Official Foundation Display
Topic: Rotate display 90º?
Replies: 76
Views: 254875

Re: Rotate display 90º?

After a change to Pixel the instructions in this post no longer work so I have pulled together an end 2 end set of instructions to rotate the touchscreen 90 degrees:

http://www.stuffaboutcode.com/2017/05/r ... trait.html
by LetHopeItsSnowing
Sun May 14, 2017 8:43 pm
Forum: Troubleshooting
Topic: touchscreen inversion stopped working PIXEL
Replies: 46
Views: 26475

Re: touchscreen inversion stopped working PIXEL

I pulled together some end to end instructions for rotating the touchscreen 90 degrees which might prove useful.

http://www.stuffaboutcode.com/2017/05/r ... trait.html

Go to advanced search