Go to advanced search

by B.Goode
Mon Jun 17, 2019 8:06 pm
Forum: General discussion
Topic: using Engergenie sockets with PIR motion Sensors
Replies: 3
Views: 97

Re: using Engergenie sockets with PIR motion Sensors

According to https://energenie4u.co.uk/res/pdfs/ENER314%20Programming%20Guide%20-%20EU.pdf only 6 GPIO pins are used by the interface board documented therein. If it is just a mechanical problem of making the connection, there are header-doubling products available, like this one : https://thepihut....
by B.Goode
Mon Jun 17, 2019 3:01 pm
Forum: Troubleshooting
Topic: Loading Python script at boot
Replies: 1
Views: 34

Re: Loading Python script at boot

Welcome to the Raspberry Pi forums.



"Please guess which 19 things I have tried and suggest a 20th... "



Since you are probably launching a graphical application the autostart mechanism in lxde is likely to be a fruitful approach.
by B.Goode
Mon Jun 17, 2019 2:35 pm
Forum: Beginners
Topic: Ken's Labyrinth for linux
Replies: 12
Views: 236

Re: Ken's Labyrinth for linux

Is there some kind of generic guide to building things on raspbian? No. Because there is no 'Rule' that defines how a developer must share their code. And also No because there is very little different between building for Raspbian and any other Debian-based Linux system. What does the developer of...
by B.Goode
Mon Jun 17, 2019 2:09 pm
Forum: Off topic discussion
Topic: [FIXED] Ego Search / Own Posts failing
Replies: 52
Views: 4489

Re: [FIXED] Ego Search / Own Posts failing

Thanks jamesh for the update I guess I am not the only one hampered by this.. Correct. I'd put it this way... I volunteer my time here. By not being able to follow up effectively on threads I have contributed to I feel my efforts as a volunteer are now less satisfactory, for me and enquirers, than ...
by B.Goode
Mon Jun 17, 2019 1:52 pm
Forum: Automation, sensing and robotics
Topic: Limit Switch
Replies: 4
Views: 103

Re: Limit Switch

it would be very convenient to add a limit switch to stop the motor (which runs for 10 seconds) when the door reaches the threshold. I don't know which gpio to plug it into Recent models of RPi board have 26 gpio pins available on the 40 way header on the board. Two are used by your existing code. ...
by B.Goode
Mon Jun 17, 2019 5:51 am
Forum: Networking and servers
Topic: Wake on LAN server
Replies: 3
Views: 89

Re: Wake on LAN server

Thanks heaps. Can you use it to create a script with a schedule for WOL? I can then just set the PC power settings to auto shut off after say 2 hours. Also what OS is that package on? Rasparian? Yes, you can create a scheduled activity using the cron scheduler. The Raspberry Pi Foundation supported...
by B.Goode
Sun Jun 16, 2019 4:57 pm
Forum: Other projects
Topic: Wire GPIO into remote control PCB?
Replies: 7
Views: 188

Re: Wire GPIO into remote control PCB?

What you seek to do must be possible because here is a commercially available product that does it:

https://energenie4u.co.uk/catalogue/product/ENER002-2PI
by B.Goode
Sun Jun 16, 2019 3:20 pm
Forum: Arch
Topic: Latest Arch Linux on first generation Raspberry Pi?
Replies: 2
Views: 128

Re: Latest Arch Linux on first generation Raspberry Pi?

Perhaps try it and see, or ask here: https://archlinuxarm.org/forum/
by B.Goode
Sun Jun 16, 2019 3:13 pm
Forum: Off topic discussion
Topic: how heavy is raspbian ?
Replies: 30
Views: 767

Re: how heavy is raspbian ?

Can you measure the state of charge of a rechargeable cell by measuring its weight?
by B.Goode
Sun Jun 16, 2019 3:10 pm
Forum: Python
Topic: servo control
Replies: 10
Views: 238

Re: servo control

Traceback (most recent call last): File "/home/pi/Desktop/starter_setup.py", line 84, in <module> orange_light() File "/home/pi/Desktop/starter_setup.py", line 51, in orange_light if GPIO.input (BUTTON1)==1: ValueError: The channel sent is invalid on a Raspberry Pi "The channel sent is invalid" GPI...
by B.Goode
Sun Jun 16, 2019 2:40 pm
Forum: Beginners
Topic: setting up a RP headless from a ubuntu laptop
Replies: 3
Views: 134

Re: setting up a RP headless from a ubuntu laptop

Welcome to the Raspberry Pi forums I haven't found a way to install Rasbian on my new RaspberryPi by using my Ubuntu laptop. I have an SD card with noobs on it. But I don't (yet) have a USB mouse or keyboard, much less a monitor. So, you see, I need help getting started with RaspberryPi. Can it be d...
by B.Goode
Sun Jun 16, 2019 2:29 pm
Forum: Beginners
Topic: Beginner dev environment question
Replies: 2
Views: 92

Re: Beginner dev environment question

Hello, just bought my first Pi and I'm wondering about the development enviroment to use. I decided to finally seize the opportunity and get some Linux experience too and I'd like to have your opinion about some different scenarios I thought about. Should I get an Ubuntu partition on my laptop, or ...
by B.Goode
Sun Jun 16, 2019 6:19 am
Forum: Beginners
Topic: How do I write to /etc files from Python3 on my Pi?
Replies: 1
Views: 58

Re: How do I write to /etc files from Python3 on my Pi?

All attempts to override the default file protections carry some risk of something bad happening if you erroneously do the wrong thing. (But of course some changes to configuration files are perfectly legitimate.) That said, one simple solution is just to give your script superuser (root) privilege ...
by B.Goode
Sat Jun 15, 2019 3:52 pm
Forum: Troubleshooting
Topic: Cant ping 8.8.8.8 get "Destination Host Unreachable"
Replies: 8
Views: 147

Re: Cant ping 8.8.8.8 get "Destination Host Unreachable"

I'm not even sure where to start. Start by providing some basic information to give volunteer helpers a chance to assist... What model of RPi? What Operating System? What mode of network connection - WiFi or cabled? Any information about the local network. At home, as part of a domestic broadband I...
by B.Goode
Sat Jun 15, 2019 3:45 pm
Forum: Python
Topic: Reading LDR with MCP3008
Replies: 6
Views: 177

Re: Reading LDR with MCP3008

As it has already been mentioned, the problem was the frequency, it had to be limited. Anyway, I am a newbie at electronics and I do not fully understand what frequency are we limiting? I am familiar with this concept but I cannot relate to this case. Thanks, I don't think it is what most people wo...
by B.Goode
Sat Jun 15, 2019 10:59 am
Forum: Troubleshooting
Topic: Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo
Replies: 6
Views: 194

Re: Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo

Looks okay from here. http://raspbian.raspberrypi.org/raspbian/pool/main/p/py3cairo/python3-cairo_1.10.0+dfsg-5_armhf.deb The sense-emu-tools installs and runs fine too. Op seems to have had corrupted data. Thank you for your reply. I see that my /etc/apt/sources.list.d/raspi.list file has the foll...
by B.Goode
Sat Jun 15, 2019 9:25 am
Forum: Troubleshooting
Topic: Using GPIO
Replies: 9
Views: 221

Re: Using GPIO

You're using different GPIO's. The first script is using Broadcom numbers and the second uses Pi numbering. Comment out the setmode command in the first script and they'll use the same GPIO. You shouldn't be making resistance measurements with a DVM on a powered circuit. If you comment out the GPIO...
by B.Goode
Sat Jun 15, 2019 9:17 am
Forum: Python
Topic: Function going through twice
Replies: 17
Views: 444

Re: Funtion going through twice

It doesn't directly help, but there are reports of this behaviour in this forum dating back to 2012. My suggestion would be to try reimplementing your code with a different gpio library, perhaps gpiozero. Although gpiozero can use RPi.GPIO as its 'backend', there are alternatives you can specify ins...
by B.Goode
Fri Jun 14, 2019 4:58 pm
Forum: Beginners
Topic: How would I only boot into one program and not a full blown OS
Replies: 13
Views: 344

Re: How would I only boot into one program and not a full blown OS

Previously you wrote: I’d like to have all of the functionality minus the GUI. I don’t need a keyboard or mouse since I’m inputting data from my app through MQTT protocol, which is why I need internet. I just want to make it solely for that purpose and nothing else. But now you specify: my end goal ...
by B.Goode
Fri Jun 14, 2019 4:46 pm
Forum: Beginners
Topic: Serial Communication in RPI3
Replies: 10
Views: 225

Re: Serial Communication in RPI3

Partially quoting your initial query: I emailed PCE and they sent me the serial protocol with the baudrates, parities, stopbits, etc. I've tried tutorials on youtube for serial communication, but everything is for RPI - PC connection. I've written some code in Python with the Serial Library with the...
by B.Goode
Fri Jun 14, 2019 4:05 pm
Forum: Beginners
Topic: Reboot raspberry pi and run a script after
Replies: 5
Views: 125

Re: Reboot raspberry pi and run a script after

Hi, I’m making an application in Python and my script runs some terminal commands via “os.system”. However, after them commands are run, the Pi needs to reboot to make the changes happen. I need to carry on running the rest of the script once the Pi reboots, how would I do that? Basically how do I ...
by B.Goode
Fri Jun 14, 2019 4:00 pm
Forum: Beginners
Topic: How would I only boot into one program and not a full blown OS
Replies: 13
Views: 344

Re: How would I only boot into one program and not a full blown OS

Hi, I'm doing this project and I'd like my raspberry pi to have all its features/drivers working, just not have a full blown UI as an OS. Like a bare minimum OS. I've searched everywhere for solutions like I just want this one program to run on my pi with access to the hardware and terminal. I woul...
by B.Goode
Fri Jun 14, 2019 2:49 pm
Forum: Camera board
Topic: camera not working on clean install
Replies: 2
Views: 69

Re: camera not working on clean install

The Raspberry Pi Foundation documentation for the Camera Module, including Troubleshooting, is here: https://www.raspberrypi.org/documentati ... /camera.md
by B.Goode
Fri Jun 14, 2019 2:43 pm
Forum: Raspbian
Topic: Pi shuts down automatically immediately after boot.
Replies: 8
Views: 196

Re: Pi shuts down automatically immediately after boot.

Since the software is installed from a GitHub repository I would normally recommend using the Issues page for the repository to contact the developer. Sadly there does not seem to be an Issues page...

Uugear have a Contact Us form on their website : http://www.uugear.com/contact-us/
by B.Goode
Fri Jun 14, 2019 2:29 pm
Forum: Raspbian
Topic: Pi shuts down automatically immediately after boot.
Replies: 8
Views: 196

Re: Pi shuts down automatically immediately after boot.

A further thought, added after the OP had potentially read the previous response... Might it be that the rebooted system, after modification by the software installation process, requires the presence of a 'keep-alive' signal from the add-on board and in its absence automatically triggers a shutdown...

Go to advanced search