Go to advanced search

by GordsM8
Mon Oct 23, 2017 10:52 pm
Forum: Automation, sensing and robotics
Topic: Trouble communicating with RoboClaw motor controller
Replies: 7
Views: 1856

Re: Trouble communicating with RoboClaw motor controller

It turned out to be a problem with the Python version. The motor controller library is written in Python2 but someone suggested changes to make it compatible with Python3. I made those changes and all seemed fine. As I had tried everything, I decided to go right back to the original library code (py...
by GordsM8
Mon Oct 23, 2017 7:17 pm
Forum: Automation, sensing and robotics
Topic: Trouble communicating with RoboClaw motor controller
Replies: 7
Views: 1856

Re: Trouble communicating with RoboClaw motor controller

That is the default speed, but you can configure the baud rate in their ION Studio software. I have tried a number of different baud rates, without success.
by GordsM8
Mon Oct 23, 2017 6:23 pm
Forum: Automation, sensing and robotics
Topic: Trouble communicating with RoboClaw motor controller
Replies: 7
Views: 1856

Re: Trouble communicating with RoboClaw motor controller

They are powered by the same 12v battery, although the Pi has a UBEC to reduce it to 5v.

I did try adding a connection between Gnd (pin 6) on the Pi and one of the -ve pins on the RoboClaw ... unfortunately, it didn't seem to fix it.
by GordsM8
Mon Oct 23, 2017 5:38 pm
Forum: Automation, sensing and robotics
Topic: Trouble communicating with RoboClaw motor controller
Replies: 7
Views: 1856

Trouble communicating with RoboClaw motor controller

I have a Raspberry Pi 3 with the latest OS installed. I have an ION RoboClaw 2x15A motor controller. I have configured it to use Packet Serial. I have wired Pi pin 8 (GPIO14) to S1 on the RoboClaw and pin 10 (GPIO15) to S2 on the RoboClaw. I cannot get anything to work (although the motors drive usi...
by GordsM8
Mon Sep 11, 2017 6:53 pm
Forum: Advanced users
Topic: Trouble using serial via GPIO
Replies: 11
Views: 2043

Re: Trouble using serial via GPIO

Unfortunately, that didn't solve it. I have noticed, however, that sometimes when it fails the returned data contains text that looks like it's a login page!? Opened port /dev/serial0 for testing: Sent 15 bytes Received incorrect data b'\nLogin incorrec' over Serial port /dev/serial0 loopback I incr...
by GordsM8
Mon Sep 11, 2017 4:06 pm
Forum: Advanced users
Topic: Trouble using serial via GPIO
Replies: 11
Views: 2043

Re: Trouble using serial via GPIO

If I keep running the test script over and over again, sometimes the code works (!?), but mainly it doesn't.
by GordsM8
Mon Sep 11, 2017 3:53 pm
Forum: Advanced users
Topic: Trouble using serial via GPIO
Replies: 11
Views: 2043

Re: Trouble using serial via GPIO

cat /boot/cmdline.txt: dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles grep -v -e ^# /boot/config.txt: dtparam=audio=on hdmi_force_hotplug=1 enable_uart=1 dtoverlay=pi3-miniuart-bt
by GordsM8
Mon Sep 11, 2017 11:08 am
Forum: Advanced users
Topic: Trouble using serial via GPIO
Replies: 11
Views: 2043

Re: Trouble using serial via GPIO

Yes, I did perform those steps ... does it matter though, that I also did the steps to swap the serial ports?

Can I / should I also perform the "disable the console" steps on "ttyAMA0"? E.g. should I perform those steps on both serial ports?
by GordsM8
Mon Sep 11, 2017 10:38 am
Forum: Advanced users
Topic: Trouble using serial via GPIO
Replies: 11
Views: 2043

Re: Trouble using serial via GPIO

I think I have disabled the serial console? I followed this web page to swap the serial ports over https://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/ Can you give me more details one how to disable the system console and/or check if it has been done plea...
by GordsM8
Mon Sep 11, 2017 7:42 am
Forum: Advanced users
Topic: Trouble using serial via GPIO
Replies: 11
Views: 2043

Trouble using serial via GPIO

I have a Raspberry Pi 3, using the latest Raspian, and the software is up to date. I am having trouble with setting up / using the serial port on the GPIO - pins 8 & 10. I have put a wire between pins 8 & 10 and am running the following code to test transmission: #!/usr/bin/env python3 # -*- coding:...
by GordsM8
Thu Aug 24, 2017 1:08 pm
Forum: Automation, sensing and robotics
Topic: Sabertooth 2 x 12 with Raspberry Pi 3
Replies: 9
Views: 1722

Re: Sabertooth 2 x 12 with Raspberry Pi 3

So, you are saying that the Sabertooth controller does detect various problems (low voltage, overheating, etc) but that information is not accessible externally - yes, I understand that. However, the Sabertooth controller deals with those issues itself doesn't it? (I appreciate that isn't ideal in a...
by GordsM8
Thu Aug 24, 2017 11:04 am
Forum: Automation, sensing and robotics
Topic: Sabertooth 2 x 12 with Raspberry Pi 3
Replies: 9
Views: 1722

Re: Sabertooth 2 x 12 with Raspberry Pi 3

Sorry, not sure I understand that post! As you said previously, S2 can be used as an emergency stop ... that would be very useful if the vehicle went out of range of the xbox controller, I just don't know if that is possible to detect. An actual XBox does it, it shows a message when you take the con...
by GordsM8
Thu Aug 24, 2017 8:49 am
Forum: Automation, sensing and robotics
Topic: Sabertooth 2 x 12 with Raspberry Pi 3
Replies: 9
Views: 1722

Re: Sabertooth 2 x 12 with Raspberry Pi 3

Thanks for your detailed reply, very helpful! So, with packetized serial, is it the case that you send a command and the controller keeps doing that until you send another command? I seem to remember the documentation talked about a "timeout" option ... does that not apply to packetized serial? The ...
by GordsM8
Wed Aug 23, 2017 10:31 am
Forum: Automation, sensing and robotics
Topic: Sabertooth 2 x 12 with Raspberry Pi 3
Replies: 9
Views: 1722

Sabertooth 2 x 12 with Raspberry Pi 3

I am building a robot / car / thing - it is 6 wheeled (6 motors) and I have a Sabertooth 2 x 12 Motors - https://www.pololu.com/product/3203 Sabertooth - https://www.dimensionengineering.com/products/sabertooth2x12 I have a Raspberry Pi 3, I also have a logic level converter to go between 3.3v and 5...
by GordsM8
Wed Aug 16, 2017 8:56 am
Forum: Media centres
Topic: Sonos alternative system
Replies: 3
Views: 4970

Sonos alternative system

I have spent quite a few hours searching Google for ideas ... and hardware-wise I think it's relatively simple (e.g. Pi 3 + HifiBerry + speakers). It is the software side of things that I am struggling with. While on holiday recently, we were spoilt with the use of a Sonos system. We all enjoyed add...
by GordsM8
Tue Jul 18, 2017 11:20 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Re: Send message via network for multiple clients

I'm wondering if backplate does not always start when the Pi boots. I was trying to send a test message from server to client and it wasn't being received. I typed "backplane" in a command window and tried sending the message again and it worked. Is there a way via Python that I can check if backpla...
by GordsM8
Tue Jul 18, 2017 7:42 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Re: Send message via network for multiple clients

This is the "server" code that listens for the doorbell button: #!/usr/bin/python3 import time import pigpio import _433gs from python_banyan.banyan_base import BanyanBase class DoorBell(BanyanBase): """ This component monitors the doorbell button For GPIO control and monitoring it uses pigpio """ c...
by GordsM8
Tue Jul 18, 2017 4:31 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Re: Send message via network for multiple clients

If you are successful in getting this working, wrapping the code with banyan to make it WiFi-able would be easy and I would be happy to assist with that. I have finally got this working ... although it is a little bit fragile! If I start the Pi that is acting as the button press detector (server) a...
by GordsM8
Mon Jul 17, 2017 8:13 pm
Forum: Other projects
Topic: Case with extra space for Pi Zero W
Replies: 0
Views: 834

Case with extra space for Pi Zero W

I am looking for a case that will fit the Pi Zero W (i.e. have the usual connector holes, but also have enough height to allow for a Hat (Speaker pHat). Maybe even more space in another direction for fitting other bits and pieces. I have had a good search around but can't find anything - does anyone...
by GordsM8
Thu Jul 13, 2017 11:34 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Re: Send message via network for multiple clients

The general plan was that the Pi would be monitoring / waiting for a signal on a specific pin (currently using GPIO27), which is where the 433Mhz receiver is wired to. Originally, I purchased a more "featured" radio that has an IRQ pin, which I assumed could have been used to tell the Pi to read the...
by GordsM8
Thu Jul 13, 2017 4:01 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Re: Send message via network for multiple clients

This is all quite new to me, so sometimes it is a rather steep learning curve! My main problem at the moment is detecting that the doorbell (Lloytron) has been pressed and also to get it's identifying number / code, so that I know it is in fact my doorbell being pressed. So, watching for an edge, or...
by GordsM8
Thu Jul 13, 2017 3:39 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Re: Send message via network for multiple clients

Got numpy sorted (needed pip3 rather than pip) - boy did it take a long time on the Pi Zero W!! I have no idea what numpy is, so don't know if I'd want to transfer data of that type!? Also - I have got it to run / work, but it just seems to continually detect a button press. self.pi.callback(pin, pi...
by GordsM8
Thu Jul 13, 2017 1:55 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Re: Send message via network for multiple clients

I am getting an error trying to run backplane - it says I have numpy 1.8.2 but that >= 1.9.0 is required.

How do I update numpy?
by GordsM8
Thu Jul 13, 2017 6:48 am
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Re: Send message via network for multiple clients

Ah, OK!

I've installed Mosquitto and managed to communicate between 2 terminal windows ... now I need to figure out how to "publish" from Python. Then receive using a Python program (on another Raspberry Pi).
by GordsM8
Wed Jul 12, 2017 11:46 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 4581

Send message via network for multiple clients

I am working on a basic project that receives a signal from a doorbell (Lloytron) - which is working. I now want to output a "message" to one or more clients (however many might be listening) on the local network to say that the button has been pressed. The main point is to allow me to have a doorbe...

Go to advanced search