Go to advanced search

by JonnyAlpha
Wed May 10, 2017 6:39 am
Forum: Troubleshooting
Topic: USB Conflict Camera and Serial Commands to Motor Driver
Replies: 11
Views: 1407

Re: USB Conflict Camera and Serial Commands to Motor Driver

Funny that was my next line of attack. I must be getting better at this :-)
Thanks pcmanbob.
by JonnyAlpha
Mon May 08, 2017 7:49 pm
Forum: Troubleshooting
Topic: USB Conflict Camera and Serial Commands to Motor Driver
Replies: 11
Views: 1407

Re: USB Conflict Camera and Serial Commands to Motor Driver

I Think you will find that when you use os.system your python program will stop and wait for the os.system to complete before returning to your python program as you are streaming from this command you are never returned from the os.system command. you could try os.system("./streamer.sh &") I will ...
by JonnyAlpha
Sun May 07, 2017 5:30 pm
Forum: Troubleshooting
Topic: USB Conflict Camera and Serial Commands to Motor Driver
Replies: 11
Views: 1407

Re: USB Conflict Camera and Serial Commands to Motor Driver

Anyone help find out why calling the mjpg script from within my python program will cause the serial tx to stop?
by JonnyAlpha
Sun May 07, 2017 5:29 pm
Forum: Automation, sensing and robotics
Topic: Sabertooth 2x32 Autonomous and R/C
Replies: 12
Views: 2874

Re: Sabertooth 2x32 Autonomous and R/C

And here is hopefully a working link to my project blog?
https://picodeandchips.wordpress.com/20 ... t-project/
by JonnyAlpha
Fri May 05, 2017 2:40 pm
Forum: Automation, sensing and robotics
Topic: Sabertooth 2x32 Autonomous and R/C
Replies: 12
Views: 2874

Re: Sabertooth 2x32 Autonomous and R/C

Anyone following or finding this thread I now have a fully working (well sort of) remote control robot using serial over USB. Although I have borrowed a 2.4Ghz Tx / Rx I have not yet wired them up, instead I have opted to get a remote web interface working (which I have done before). I am using webi...
by JonnyAlpha
Fri May 05, 2017 2:21 pm
Forum: Troubleshooting
Topic: USB Conflict Camera and Serial Commands to Motor Driver
Replies: 11
Views: 1407

Re: USB Conflict Camera and Serial Commands to Motor Driver

Hmm; I have been doing some troubleshooting and have now found out the following. The web control panel has a video stream output from mjpg-streamer, this is called from within my python program using the following code to call a bash script. os.system("./streamer.sh") To debug this I commented out ...
by JonnyAlpha
Fri May 05, 2017 12:46 pm
Forum: Troubleshooting
Topic: USB Conflict Camera and Serial Commands to Motor Driver
Replies: 11
Views: 1407

Re: USB Conflict Camera and Serial Commands to Motor Driver

A USB webcam shouldn't conflict with USB ACM serial devices. Bad connection? Overcurrent knocking the USB port out? What does the system log (output of dmesg) say? Not at the Pi at the moment but I forgot to add the Webcam was streaming jpegs using mjpg-streamer. The Pi is being powered by an EasyA...
by JonnyAlpha
Fri May 05, 2017 9:56 am
Forum: Troubleshooting
Topic: USB Conflict Camera and Serial Commands to Motor Driver
Replies: 11
Views: 1407

USB Conflict Camera and Serial Commands to Motor Driver

Hi; I have successfully written a python script using webiopi to control a Robot with a Sabertooth Motor Driver by sending plain text serial commands via USB. I have a web control panel works works flawlessly i.e. when pressing the Forward button the robot goes forward. I have successfully installed...
by JonnyAlpha
Thu May 04, 2017 9:45 am
Forum: Automation, sensing and robotics
Topic: WebIOPi Serial over USB
Replies: 3
Views: 805

Re: WebIOPi Serial over USB

Fixed this - all working sweet as!
by JonnyAlpha
Sun Apr 30, 2017 8:44 am
Forum: Automation, sensing and robotics
Topic: Sabertooth 2x32 Autonomous and R/C
Replies: 12
Views: 2874

Re: Sabertooth 2x32 Autonomous and R/C

I have a couple of threads going covering various questions for this build but as a follow up to this one I have made some headway. I spent most of the day working out how to connect my Sabertooth / Motors etc and re-looking at the code to send plain text serial commands. For a python / serial solut...
by JonnyAlpha
Sat Apr 29, 2017 7:43 pm
Forum: Automation, sensing and robotics
Topic: Plain Text Serial over USB or UART
Replies: 1
Views: 881

Re: Plain Text Serial over USB or UART

OK so I spent most of the day working out how to connect my Sabertooth / Motors etc and re-looking at the code to send plain text serial commands. In the end I opted to use webiopi as my original code did not work. Once I installed webiopi, did some trial and error testing, fixed some errors in my c...
by JonnyAlpha
Fri Apr 28, 2017 8:37 pm
Forum: Automation, sensing and robotics
Topic: WebIOPi Serial over USB
Replies: 3
Views: 805

Re: WebIOPi Serial over USB

Yes. The USB serial shows up on the Pi in the same way that the 'built-in TX/RX' pins do. There is advice on the WebIOPi site about how to do it. http://webiopi.trouch.com/Tutorial_Serial.html I am a little confused regarding how to use WebIOPi to send plain text serial over the USB, all of the exa...
by JonnyAlpha
Fri Apr 28, 2017 8:16 pm
Forum: Automation, sensing and robotics
Topic: Plain Text Serial over USB or UART
Replies: 1
Views: 881

Plain Text Serial over USB or UART

Forgive my lack of understanding in this area and if my title is incorrect. I am trying to control a Sabertooth motor driver board which I can connect my Raspberry Pi to in two ways. 1. USB to Micro USB on Motor Driver 2. GPIO - Logic Level Shifter - Motor Driver My understanding is that I can contr...
by JonnyAlpha
Thu Apr 27, 2017 10:25 am
Forum: Advanced users
Topic: Running Functions Concurrently
Replies: 1
Views: 328

Running Functions Concurrently

Hi; I am planning a new robot build and have also been doing some python training. My current experience and understanding is of writing programs in a structured way that run sequentially e.g. def main(): print("I have started") function_1() function_2() def function_1(): print("I am now running fun...
by JonnyAlpha
Wed Apr 26, 2017 8:02 pm
Forum: Automation, sensing and robotics
Topic: WebIOPi Serial over USB
Replies: 3
Views: 805

WebIOPi Serial over USB

Hi; I have used WebIOPi previously to send commands to an Arduino over i2c serial using a web interface and would now like the same method to control a Sabertooth Motor Driver. Can WebIOPi be used to send serial data over USB as opposed to the Tx / Rx i2c. If so can anyone point me to a guide? Or of...
by JonnyAlpha
Mon Apr 24, 2017 4:59 pm
Forum: Automation, sensing and robotics
Topic: Sabertooth 2x32 Autonomous and R/C
Replies: 12
Views: 2874

Re: Sabertooth 2x32 Autonomous and R/C

Moe wrote:I can the page and click on the other links but the project robot one says 'invalid post address'
Ah yes it's empty :-) nothing added yet.

Just trying to borrow a 2.4Ghz Tx and Rx so I can test my motors.
by JonnyAlpha
Sun Apr 23, 2017 4:29 pm
Forum: Automation, sensing and robotics
Topic: Sabertooth 2x32 Autonomous and R/C
Replies: 12
Views: 2874

Re: Sabertooth 2x32 Autonomous and R/C

Moe, not sure about the Dalek Forums but you shouldn't need a login to look at my Wordpress pages. Maybe I sent you an edit link? Try this:

https://picodeandchips.wordpress.com/projects/
by JonnyAlpha
Fri Apr 21, 2017 9:34 pm
Forum: Automation, sensing and robotics
Topic: Sabertooth 2x32 Autonomous and R/C
Replies: 12
Views: 2874

Re: Sabertooth 2x32 Autonomous and R/C

Moe; Are you blogging the build? I am building mine for two things. At first it will be a Robot for a project that I am building as part of a BCS Certificate in Teaching Primary Computing. It will be used in school to engage children and hopefully inspire them to start 'making'. It's not even built ...
by JonnyAlpha
Fri Apr 21, 2017 8:38 am
Forum: Automation, sensing and robotics
Topic: Sabertooth 2x32 Autonomous and R/C
Replies: 12
Views: 2874

Sabertooth 2x32 Autonomous and R/C

Hi; Sorry for the ambiguous title but heres what I am trying to do. I am building a motorised chassis using 2 x wheelchair motors and have just received a 2 x 32Amp Sabertooth Motor Driver. What I would like to achieve is to have 2 forms of control: 1. R/C control to provide manual control of the ch...
by JonnyAlpha
Wed Mar 29, 2017 9:58 am
Forum: Other projects
Topic: Text to speech
Replies: 4
Views: 1070

Re: Text to speech

Did some searching on the web and it seems that you can change the config file but on a fresh install of Jessie I can't locate it. As well as changing the language EN / US etc does it come with the ability to modify the voice AKA robot / alien?
by JonnyAlpha
Wed Mar 29, 2017 9:56 am
Forum: Python
Topic: Google Text To Speech
Replies: 46
Views: 24742

Re: Google Text To Speech

Jumping in on an old thread but I have just installed pico which works fine but how / can you change the voice?
Can't locate the conf file. Does it come with the ability to modify the voice AKA robot / alien?
by JonnyAlpha
Wed Mar 29, 2017 9:43 am
Forum: Other projects
Topic: Text to speech
Replies: 4
Views: 1070

Text to speech

Hi; I put this in other projects as this is part of a project that I am working on to create a class room assistant as part of a BCS Certificate in Computing. I need the assistant to respond verbally and am experimenting with a few packages. I have flash a fresh image of Jessie and done an update an...
by JonnyAlpha
Fri Mar 17, 2017 1:06 pm
Forum: Advanced users
Topic: Disabling Screen Blanking 7 Inch Touchscreen
Replies: 12
Views: 2491

Re: Disabling Screen Blanking 7 Inch Touchscreen

Many thanks - i'll test it out :-)
by JonnyAlpha
Fri Mar 17, 2017 1:00 pm
Forum: Troubleshooting
Topic: RPi 3 Onboard WiFi not working
Replies: 6
Views: 4136

Re: RPi 3 Onboard WiFi not working

Well blow me down as you suggested I missed an '=' in one of the network fields and in the other 'PSK' should be 'psk' (lowercase)

ifconfig - wlan0 now connected!!!

Sorry for wasting anyones time - a simple syntax error that looked like a hardware issue :-)
by JonnyAlpha
Fri Mar 17, 2017 12:37 pm
Forum: Troubleshooting
Topic: RPi 3 Onboard WiFi not working
Replies: 6
Views: 4136

Re: RPi 3 Onboard WiFi not working

kill all wpa_supplicant returns wpa_supplicant: no process found And sudo kill -9 $(pidof wpa_supplicant) returned this: [email protected]:~ $ sudo ifup wlan0 wpa_supplicant: /sbin/wpa_supplicant daemon failed to start run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1 Failed t...

Go to advanced search