Go to advanced search

by asandford
Sat Jun 30, 2018 5:57 pm
Forum: Automation, sensing and robotics
Topic: MQTT broker on Raspberry pi for communication between node MCU and AWS through RPI
Replies: 3
Views: 358

Re: MQTT broker on Raspberry pi for communication between node MCU and AWS through RPI

Hey Is MQTT broker running on Node MCU, as I am also trying to connect one of my wireless sensor with Node MCU which help me to get connected with AWS cloud but still I am not there is no progress, If any suggestion you give, will be much helpful for me. The broker won't be running on the mcu (AFAI...
by asandford
Mon Jun 18, 2018 9:09 pm
Forum: General discussion
Topic: Shell script won't run just edit
Replies: 5
Views: 281

Re: Shell script won't run just edit

Devices 'wander' during boot, so don't expect /dev/sda1 to be the same partition every time.

A better option is to use udev rules with UUIDs to map the partition iDs to mount points.
by asandford
Mon Jun 18, 2018 8:59 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi and Ardino network connectivity
Replies: 6
Views: 500

Re: Raspberry Pi and Ardino network connectivity

I have the network shield for my Arduino. I would prefer cable connection then Wifi. The part on the RPi is easy, and I was able to do this controlling relays straight from the GPIO. I would prefer having an network device (arduino) connected to the relays. I have looked at LAN enabled relays. You ...
by asandford
Tue Jun 12, 2018 10:35 pm
Forum: Beginners
Topic: Beginner - Home Automation Advice
Replies: 9
Views: 339

Re: Beginner - Home Automation Advice

I've used radios to control Maplin remote sockets (max 16 unique devices). There is no direct feedback from the socket, but you could monitor the effectiveness of the device you switched on/off. A couple of the devices I controlled in this way were a fan heater and dehumidifier, I used a dht11 to me...
by asandford
Fri Jun 08, 2018 12:09 am
Forum: Troubleshooting
Topic: Cloning RFID cards with RC522 and Pi...
Replies: 2
Views: 456

Re: Cloning RFID cards with RC522 and Pi...

AFAIA some aspects are unique and you can't modify them. If you know of some Arduino code that can, I'll test it for you.
by asandford
Thu Jun 07, 2018 11:57 pm
Forum: Python
Topic: Script python activé par usb/Script python activated by usb
Replies: 2
Views: 168

Re: Script python activé par usb/Script python activated by usb

Research udev rules, the process allows you to run things on device discovery.
by asandford
Thu Jun 07, 2018 11:39 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi and Ardino network connectivity
Replies: 6
Views: 500

Re: Raspberry Pi and Ardino network connectivity

Ethernet and/or WIFI enabled Arduinos are unreasonably expensive, I use Omega Onions instead.

As an alternative to (I assume TCP/IP) networking, you could use radio networking instead (they use a variety of interfaces).
by asandford
Thu Jun 07, 2018 11:26 pm
Forum: General discussion
Topic: Visual Programming RPi
Replies: 2
Views: 220

Re: Visual Programming RPi

Depending on what you want to do, Node=Red is a very capable event-driven environment (it can behave as a batch scheduler as a bonus).
by asandford
Thu Jun 07, 2018 11:04 pm
Forum: General programming discussion
Topic: Identifying physical USB port attached to Arduino, from start up
Replies: 15
Views: 1411

Re: Identifying physical USB port attached to Arduino, from start up

Perhaps. However, I am closing this issue out, per LITS (Life is to short). Plenty of work arounds (Don't use nanos, KISS, etc). I flagged this as a problem to the mods, but got no response. I now buy clones like these that state the serial interface as CH340 (~£9 for 3, but some soldering required).
by asandford
Wed May 23, 2018 8:26 pm
Forum: General discussion
Topic: combining raspberry hats and phats
Replies: 3
Views: 165

Re: combining raspberry hats and phats

'True' HATs aren't designed to be stackable, however, the Adafruit PiOLED isn't a 'true' HAT and The OLED uses only the I2C pins so you have plenty of GPIO connections available for buttons, LEDs, sensors, etc. The OnOff_Shim isn't a'true' HAT either and doesn't use I2C, so you should be able to com...
by asandford
Wed May 23, 2018 8:06 pm
Forum: Python
Topic: Can I use MySQL as a way to store and edit python variables
Replies: 4
Views: 250

Re: Can I use MySQL as a way to store and edit python variables

Node Red and SQLite is pretty much all you need (NR can fire off your python scripts if there isn't a node that already implements the functionality). I/O functionality built-in includes serial/websocket/http/tcp/udp/email/gpio/MQTT/Arduino (firmata) and twitter, DB nodes are available for all comm...
by asandford
Fri May 18, 2018 12:12 am
Forum: Troubleshooting
Topic: node red start/stop
Replies: 14
Views: 1391

Re: node red start/stop

I don't make NR rules, the authors of NR state quite categorically, "do not install NR/nodes as root". In the 5+ years I've been using NR, I've only seen advice to not install as root, not "do not run as root". There is no danger running things as root (if you know what you are doing), and there is...
by asandford
Thu May 17, 2018 11:57 pm
Forum: General programming discussion
Topic: How do I protect my code?
Replies: 32
Views: 2814

Re: How do I protect my code?

deepakdeshp wrote:
Thu May 17, 2018 7:50 pm
I wonder how the developers of commercial RPI commercial aps handle this issue, let all merrily copy their SD card and the software?
They might use the compute module which doesn't use an SD card.
by asandford
Mon May 14, 2018 12:21 am
Forum: General programming discussion
Topic: Identifying physical USB port attached to Arduino, from start up
Replies: 15
Views: 1411

Re: Identifying physical USB port attached to Arduino, from start up

I've only been able to get the Nano recognized if I plug it into the USB port after the RPi has booted. If I am remembering correctly, I've checked the USB status (lsusb, dmesg) as much as 5 to 10 minutes later and found that it still is not recognized. I will now look into the pyusb library, to se...
by asandford
Mon May 14, 2018 12:13 am
Forum: Raspbian
Topic: RASPBIAN STRETCH auto login as root not working
Replies: 26
Views: 5884

Re: RASPBIAN STRETCH auto login as root not working

Well gee, why does the wiki explain how to enable the root user then? And why is it so easy to do? I currently login as root with WinSCP/Putty so I can edit config files with notepad++ instead of sudo nano in Putty; that makes for a lot less typing of paths. I totally agree that commercial operatio...
by asandford
Sat May 12, 2018 7:23 pm
Forum: General programming discussion
Topic: Identifying physical USB port attached to Arduino, from start up
Replies: 15
Views: 1411

Re: Identifying physical USB port attached to Arduino, from start up

What's the serial chip on the Nano clones: CH341 or FTDI clone? I've seen problems with the latter as they all identify as having serial number 00000000. The serial driver expects unique serial numbers on FTDI chips and can become confused. This Nano clone doesn't get detected at boot: [ 339.169384...
by asandford
Sat May 12, 2018 6:38 pm
Forum: Other programming languages
Topic: BBC BASIC for iOS
Replies: 17
Views: 1717

Re: BBC BASIC for iOS

RichardRussell wrote:
Sat May 12, 2018 2:13 pm

You don't say which BASIC (BB4W or BBCSDL) but no matter: neither of them is "very good".
BB4W (bought it in Jan 2013).
by asandford
Fri May 11, 2018 9:55 pm
Forum: Troubleshooting
Topic: Camera does not works with Motion
Replies: 5
Views: 4403

Re: Camera does not works with Motion

spex357 wrote:
Mon May 07, 2018 10:46 am
I'm just about to test motion thats installed in Stretch
That's nice for you, no need to necro threads
by asandford
Fri May 11, 2018 9:51 pm
Forum: General programming discussion
Topic: Identifying physical USB port attached to Arduino, from start up
Replies: 15
Views: 1411

Re: Identifying physical USB port attached to Arduino, from start up

So… I don’t have a root cause, but I might have a culprit. I have repeated my testing on: • Arduino Uno • Arduino Micro • Adafruit Trinket • Adafruit Pro Trinket • OSEPP FTDI adapter And all operated correctly. Which is to say, the RPi found them on boot up. No extra power supplies were necessary. ...
by asandford
Fri May 11, 2018 9:39 pm
Forum: Other programming languages
Topic: BBC BASIC for iOS
Replies: 17
Views: 1717

Re: BBC BASIC for iOS

Strange, I think my observations are relevant to posts 2-9 (or are we not allowed to discuss anything other than the first post in a thread?!). You are entirely at liberty to disagree, the idea of a forum is to be able to voice opinions. Be that as it may, my point is "horses for courses". I replie...
by asandford
Fri May 11, 2018 9:15 pm
Forum: Raspbian
Topic: RASPBIAN STRETCH auto login as root not working
Replies: 26
Views: 5884

Re: RASPBIAN STRETCH auto login as root not working

Is it because the root user is disabled by default in Stretch? In order to activate it you have to give it a password. The security Nazis strike again! AFAIA, root has never had a password in any Raspbian version because you should never need to log in as root (there are other ways to get the privs...
by asandford
Fri May 11, 2018 8:13 pm
Forum: Troubleshooting
Topic: Pi 3 crashing at the same time each day
Replies: 14
Views: 706

Re: Pi 3 crashing at the same time each day

billdlv wrote:
Fri May 11, 2018 2:04 pm
Computer was on this morning, no problems. I checked the size of the ramdisk used by the image capture program, it's only 20 Meg.
:D That's always the way when you try to demonstrate 'repeatable' faults, they never happen - but tomorrow, when you're not looking....
by asandford
Fri May 11, 2018 8:11 pm
Forum: Beginners
Topic: One Pi to rule them all !
Replies: 3
Views: 271

Re: One Pi to rule them all !

foxnico wrote:
Fri May 11, 2018 4:44 pm
Many thanks, I had a look at Node Red, pretty cool stuff !
Np, the same flow on the monitored Pis could also subscribe to a command topic that wold alow your master to reboot them (assuming they handn't totally crashed), or any command you care to implement really.
by asandford
Fri May 11, 2018 8:06 pm
Forum: General programming discussion
Topic: Identifying physical USB port attached to Arduino, from start up
Replies: 15
Views: 1411

Re: Identifying physical USB port attached to Arduino, from start up

I don't believe that's the problem, as the Pi has a 3 ampere supply and i have a 10 ampere supply for the Nanos. Hmm, the only thing I could find about error -32 was a current over-draw from the USB device, but the host was a PC, and I'm not sure whether the Pi has the ability to flag such a situat...
by asandford
Fri May 11, 2018 5:01 pm
Forum: Beginners
Topic: RPi 3B + stepper motor velleman 28BYJ48 + ULN2003
Replies: 5
Views: 388

Re: RPi 3B + stepper motor velleman 28BYJ48 + ULN2003

The tutorial you are following is using the gpio layout of the very first piB which changed on the revision 2 and then remains the same on every subsequent pi. So your IN connections now need to be connected to the gpio like this to make use of the code you posted. # GPIO17,GPIO18,GPIO21,GPIO22 Ste...

Go to advanced search