Go to advanced search

by PhatFil
Sun Sep 16, 2018 12:17 pm
Forum: Troubleshooting
Topic: Pi3 won't recover from reboot
Replies: 14
Views: 2319

Re: Pi3 won't recover from reboot

try using the shutdown command? a 'shutdown -h' will stop the system and it will not restart until powered down and powered back up or reset is pulled to ground. a 'shutdown -r' will restart the system..

Code: Select all

sudo shutdown -r now
is the instant restart command i use,
by PhatFil
Sun Sep 16, 2018 11:34 am
Forum: Networking and servers
Topic: Extending Wifi Signal
Replies: 9
Views: 4576

Re: Extending Wifi Signal

have a google around the Phrase 'directional wifi transmitter/receiver' theoretically if you devote a pair of ap devices and focus their transmission/reception into a narrow band pointing at each other Yes but it would involve a little spending. alternatively you could also try leapfrogging a signal...
by PhatFil
Sat Sep 15, 2018 12:36 pm
Forum: Beginners
Topic: Powering a sensor using an external power supply board
Replies: 2
Views: 1413

Re: Powering a sensor using an external power supply board

Looks good to me, yes you do want to connect the grounds. ive not checked the maths on your resistor values but they seem to be in the same general proportion to each other as my own 5-3.3v voltage dividers.. however what else have you got plugged in beyond the camera? a 30ma draw for the additional...
by PhatFil
Fri Sep 14, 2018 1:05 pm
Forum: Beginners
Topic: Raspberry Pi 3 as a server
Replies: 2
Views: 318

Re: Raspberry Pi 3 as a server

yes, use raspi-config to set the desired host name (Network -> hostname). and change the Pi hostname to what you want Now if you have mdns enabled on your network that should be that, but if not? on a windoze client you can add an entry into the hosts file c:\Windows\System32\Drivers\etc\hosts. iirc...
by PhatFil
Fri Sep 14, 2018 12:48 pm
Forum: Automation, sensing and robotics
Topic: How to write to two MPU6050 registers on one I2C line
Replies: 9
Views: 1255

Re: How to write to two MPU6050 registers on one I2C line

Whoa, this is crazy. Welcome to the forum, and welcome to the codeface ;) Every dead end or perpendicular learning curve you look to avoid, just adds a little more fulfillment to the achievement when complete. And even if you discover you have spent months re-inventing a 'feature poor wheel' compar...
by PhatFil
Fri Sep 14, 2018 12:29 pm
Forum: Automation, sensing and robotics
Topic: Wireless soil moisture sensor
Replies: 47
Views: 15440

Re: Wireless soil moisture sensor

Nice one Straight to the hub of the issue, you will probably want to wrap that up in a small loop to retest on failure x times. That is one 'feature of the xiaomi-ble node (out of the box) does not have. And its also my current node red hurdle.. . here is a wayyyyy easier read of sensor in python......
by PhatFil
Thu Sep 13, 2018 11:07 pm
Forum: Automation, sensing and robotics
Topic: 3rd generation patio plant care system.
Replies: 4
Views: 827

Re: 3rd generation patio plant care system.

Cheers, getting there, found a few limitations of node red and even more in myself. have cracked saving everything between system shutdowns/crashes (tho in the latter case 1 set of data records could get lost. one thing of concern though not found when using Thoms python logger is the xiaomi ble nod...
by PhatFil
Thu Sep 13, 2018 9:43 am
Forum: Automation, sensing and robotics
Topic: 3rd generation patio plant care system.
Replies: 4
Views: 827

Re: 3rd generation patio plant care system.

To add additional sensors/pumps/areas: add an additional injection node the payload of which is the mac address of the ble sensor sudo hcitool lescan will list all ble devices within range of your pi so you can determine the mac addy of your sensors. the Topic of the node is the name of your sensor ...
by PhatFil
Wed Sep 12, 2018 11:03 am
Forum: Troubleshooting
Topic: Using timer in GPIO numbering error
Replies: 10
Views: 795

Re: Using timer in GPIO numbering error

the error message is telling you your using a gpio for output without declaring it for that use.. this should tell you all you need to know about setting a gpio pin up for output https://raspi.tv/2013/rpi-gpio-basics-5-setting-up-and-using-outputs-with-rpi-gpio also try googleing 'gpio.out pi' if yo...
by PhatFil
Wed Sep 12, 2018 10:53 am
Forum: Raspberry Pi OS
Topic: (Solved) Time sync problem
Replies: 14
Views: 26770

Re: (Solved) Time sync problem

Glad to hear its sorted..
by PhatFil
Wed Sep 12, 2018 10:41 am
Forum: Other projects
Topic: Let Pi remove it's own power
Replies: 5
Views: 1126

Re: Let Pi remove it's own power

perhaps look at a suitable capacitor that can hold a big enough charge to keep the pi running its shutdown without the dc power? any software solution will rely on the system thats shutting down. imho a software solution executing on a system undergoing shutdown isnt likely to perform consistently. ...
by PhatFil
Wed Sep 12, 2018 7:50 am
Forum: Other projects
Topic: Let Pi remove it's own power
Replies: 5
Views: 1126

Re: Let Pi remove it's own power

Hi have you considered a simple delay circuit while i have not tried it i would bet a pint if you searched google with the term 3.3v 5 second delay circuit you will find something.. that way you can triger the event and continue with the shutdown for X seconds until the delay fires and signals the o...
by PhatFil
Wed Sep 12, 2018 6:12 am
Forum: Automation, sensing and robotics
Topic: 3rd generation patio plant care system.
Replies: 4
Views: 827

Re: 3rd generation patio plant care system.

Btw the Pi is a pi-zeroW headless hosting node red and mosquitto mqtt broker. how could i forget the Pi in here of all places too. :oops: Also all 6 x sensors are sat in the same pot atm so i can 'calibrate them' there seems to be a significant difference in the moisture readings taken, but the diff...
by PhatFil
Wed Sep 12, 2018 6:10 am
Forum: Automation, sensing and robotics
Topic: 3rd generation patio plant care system.
Replies: 4
Views: 827

3rd generation patio plant care system.

Utilising Xiaomi miflora ble plant care sensors (circa 10-£15 from the usual far east portals) and a Sonoff/esp8266 controlled relay modules flashed with tasmota firmware controlling pumps, though could easily be valves, to ensure plants remain watered. its 3rd gen because gen1 was an arduino and el...
by PhatFil
Tue Sep 11, 2018 4:01 pm
Forum: General discussion
Topic: Commercial use and capability of Pi 3B+ for making BLE enabled industrial IoT gateway?
Replies: 10
Views: 4070

Re: Commercial use and capability of Pi 3B+ for making BLE enabled industrial IoT gateway?

polling 100 sensors may present problems for any stand alone system. and you may need to bundle more than one pi or b/tooth controller into the system. I am basing this on my expereince polling less than 10x ble sensors sequentially, sometimes due to interference sensors do not handshake successfull...
by PhatFil
Tue Sep 11, 2018 2:18 pm
Forum: Beginners
Topic: Connectin to Windows 10 PC.
Replies: 26
Views: 4948

Re: Connectin to Windows 10 PC.

how have you set up your computer to serve the pi an ip address or is your computer automatically bridging your wifi to the pi? either way its probably a lot easier to simply connect the pi to your network if you can?
by PhatFil
Tue Sep 11, 2018 2:04 pm
Forum: Beginners
Topic: How to control relays in safe way (isolated) ?
Replies: 35
Views: 6401

Re: How to control relays in safe way (isolated) ?

if 2x aa cells connectd to the board with +ve to vcc and -ve successfully switching the relays when touched to the control pins, the test proves a) you can probably use the pi (vvoltage supply differences as stated above could still be a factor, it was a quick rough test..) and you need to use inter...
by PhatFil
Tue Sep 11, 2018 7:21 am
Forum: Beginners
Topic: How to control relays in safe way (isolated) ?
Replies: 35
Views: 6401

Re: How to control relays in safe way (isolated) ?

For real isolation (no wires between RPi and relay board) how about using WiFi controlled relay board for your project. I've seen some available at Amazon and Ebay..... of course you will have to modify (heavily?) your code.... I agree 100%... and it would remove the need for 90% of the code too ;)...
by PhatFil
Tue Sep 11, 2018 7:20 am
Forum: Beginners
Topic: How to control relays in safe way (isolated) ?
Replies: 35
Views: 6401

Re: How to control relays in safe way (isolated) ?

For real isolation (no wires between RPi and relay board) how about using WiFi controlled relay board for your project. I've seen some available at Amazon and Ebay..... of course you will have to modify (heavily?) your code.... I agree 100%... and it would remove the need for 90% of the code too ;)...
by PhatFil
Tue Sep 11, 2018 7:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi3 serial port
Replies: 13
Views: 18429

Re: RPi3 serial port

if the cable works with a pc to establish a serial connection via usb, Yes it should work just the same plugged into a pi usb port. just be mindful of the different operating voltages of different standards rs232 iirc is mainly 12v, usb 5v, and if connecting directly to Rx/Tx on the pi its a 3v3 sys...
by PhatFil
Tue Sep 11, 2018 6:46 am
Forum: Raspberry Pi OS
Topic: (Solved) Time sync problem
Replies: 14
Views: 26770

Re: Time sync problem

just thinking aloud here but how sophisticated is your network router/adsl or cable modem has it got a NTP setting?? if so it might be 'smart' and expect you to point to it and not a remote server? can you ping those ntp addys ? one of the outputs lists time outs, is there a significant lag on your ...
by PhatFil
Mon Sep 10, 2018 2:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi3 serial port
Replies: 13
Views: 18429

Re: RPi3 serial port

welcome to the forum btw .. Thanks. Well, you're still here, right?(: I'm not sure how this works, because yesterday I wrote a message here, still can't see it. Anyway, i've got a question about serial port. maybe, somebody knows.. I've got a cable, RJ45 to USB. Have no idea where it came from and ...
by PhatFil
Mon Sep 10, 2018 9:11 am
Forum: Beginners
Topic: [SOLVED] pir motion detection
Replies: 8
Views: 527

Re: pir motion detection

if you run it from the command line you can simply redirect the output to file by appending >> /home/pi/logs/mylogfile.txt to the end of the program command ie $ ./myscript.py >> /home/pi/logs/mylogfile.txt edit the path to the file must exist, the file will be created or if it exists be appended to.
by PhatFil
Mon Sep 10, 2018 6:32 am
Forum: Raspberry Pi OS
Topic: (Solved) Time sync problem
Replies: 14
Views: 26770

Re: Time sync problem

looks like your not establishing a connection with the ntp servers set so perhaps check for local reliable ntp servers and set accordingly.
https://raspberrypi.stackexchange.com/q ... ch-systems
by PhatFil
Mon Sep 10, 2018 6:06 am
Forum: Beginners
Topic: Raspberry(3b+)-PCA9685-12V Fans
Replies: 73
Views: 8151

Re: Raspberry(3b+)-PCA9685-12V Fans

whenever i need a roadmap for a project like this i bung the keyword 'arduino' into the search engine if i dont immediately find what i am looking for. After all if it can be done someone has done it with an arduino and written a book about it. I did the same for this question and it turns out its a...

Go to advanced search