Go to advanced search

by TimmR
Sun Mar 23, 2014 1:39 pm
Forum: Troubleshooting
Topic: ?? rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) ??
Replies: 0
Views: 1576

?? rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) ??

Hi all, My pi's wifi keeps crashing within a few minutes after booting. This is the error it gives me: rtw_cmd_thread: Driver Stopped(0) Surprise Removed(1) break at line 482 Connected to the pi: - powerd usb hub (DIY powered, 1A) -- wifi dongle -- bluetooth dongle -- webcam Anyone knows how to solv...
by TimmR
Sun Mar 16, 2014 8:16 pm
Forum: Troubleshooting
Topic: Connections lock up
Replies: 2
Views: 1311

Re: Connections lock up

First of all. I'm a real noob with this subject. But from what I understand is that your RPI looses connection every now and then? If so, you might also want to add replacing the SD card to your debugging. My connections where crashing and returning "disabling irq #32". I've swapped my random bought...
by TimmR
Sat Mar 08, 2014 7:08 pm
Forum: Other projects
Topic: Does a PSU has groups?
Replies: 2
Views: 750

Does a PSU has groups?

Hi all, I recently blew up my PSU (and some other components) so I had to replace it. The PSU was used as a bench-top power supply. I've started a little side project to make a tool to attach any PSU to make it a benchtop power supply with banana connectors. But now for the main question . Does a PS...
by TimmR
Sun Mar 02, 2014 6:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: USB data through GPIO?
Replies: 5
Views: 1367

Re: USB data through GPIO?

I see, no so far no crashes with the pi.
I've stripped some of the usb cable and
cut the power cables of it. Then I connected
it to the loose power cables that went to
the hub to a 5V rail.

Thanks, your link looks interesting. I'll take
a look at it!
by TimmR
Sun Mar 02, 2014 9:46 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: USB data through GPIO?
Replies: 5
Views: 1367

Re: USB data through GPIO?

Sweet! As a quick fix I will go with jbd's solution
But Lob0426's solution will, I guess, be implemented later on.

Thanks guys! Great solutions!
Just one more quick question.
I power the usb hub trough a modded usb cable
directly from a psu. Do you think the 5V is stable enough?
by TimmR
Sat Mar 01, 2014 3:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: USB data through GPIO?
Replies: 5
Views: 1367

USB data through GPIO?

Hi all,

Is there a way to get usb data trough the GPIO?
Or maybe trough another solder point?
(cut the usb cable in half and only use the data cables)

I have powerd usb hub in my project. But the
project case is too small for an normal usb plug...
by TimmR
Tue Feb 18, 2014 8:18 pm
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

Re: ticks instead of time.sleep() ?

Sweet! all seems to work fine.
Placed the gear in place and after finding out the min and max speed for
the rotary table all works good!

Thank you very much for your time and help!
by TimmR
Thu Feb 13, 2014 8:24 pm
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

Re: ticks instead of time.sleep() ?

Sweet! the speed seems to work just fine! Except one thing. The motor keeps running after the script finishes. Tomorrow I will try the script with a gear attached to the motor. One more (extra) thing I guess, now with PWM, I cant use a stepCounter anymore right? With simple on/off I could add "stepC...
by TimmR
Thu Feb 13, 2014 7:10 pm
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

Re: ticks instead of time.sleep() ?

That is expected behaviour. The dutycycle makes no differences to the number of pulses, it just varies the ratio of the on pulse time to the off pulse time. You need to change the frequency of the PWM itself. Ah, I see. I've got that working now with: pigpio.set_PWM_frequency(22, 1000) But, indeed,...
by TimmR
Thu Feb 13, 2014 6:26 pm
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

Re: ticks instead of time.sleep() ?

joan wrote: ...
If you are not using I2S sound the simplest solution is to blacklist the module,
Ah, that did the trick.

But with your code still the same result.
"pigpio.set_PWM_dutycycle(22, 2)" and up to 255 are all the same speed with the easydriver.
by TimmR
Thu Feb 13, 2014 8:21 am
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

Re: ticks instead of time.sleep() ?

Cheers, I will try this out. Running the script gives me: Traceback (most recent call last): File "./test07.py", line 7, in <module> pigpio.start('127.0.0.1',8888) File "/usr/local/lib/python2.7/dist-packages/pigpio.py", line 1996, in start _control.connect((_host, _port)) File "/usr/lib/python2.7/s...
by TimmR
Wed Feb 12, 2014 9:08 pm
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

Re: ticks instead of time.sleep() ?

Hmm, I see.

It goes down to 0.00001
by TimmR
Wed Feb 12, 2014 8:59 pm
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

Re: ticks instead of time.sleep() ?

Ah right, sorry. I have an easydriver with a stepper motor connected to GPIO 22. The motor moves one step with this script: GPIO.output(pinStep0Step, GPIO.HIGH) time.sleep(stepperSpeed) GPIO.output(pinStep0Step, GPIO.LOW) time.sleep(stepperSpeed) But since time.sleep() slows my script. As stated abo...
by TimmR
Wed Feb 12, 2014 8:10 pm
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

Re: ticks instead of time.sleep() ?

I see what you mean. If I could implement PWM I could completely delete all time.sleep() functions in my script. But I can't seem to get it to work with my easydriver This is the test script: import time from RPIO import PWM def initchannel(): PWM.setup() PWM.init_channel(0) def main(): initchannel(...
by TimmR
Sun Feb 09, 2014 8:45 pm
Forum: Python
Topic: ticks instead of time.sleep() ?
Replies: 21
Views: 8074

ticks instead of time.sleep() ?

Hey all, A couple days ago someone told me to use a "ticks" counter instead of a time.sleep() in my coding. This is an example where I use time.sleep() : GPIO.output(pinStep0Step, GPIO.HIGH) time.sleep(stepperSpeed) GPIO.output(pinStep0Step, GPIO.LOW) time.sleep(stepperSpeed) I use time.sleep() seve...
by TimmR
Sun Dec 29, 2013 3:26 pm
Forum: Beginners
Topic: RPI reboots when powering motor with relay
Replies: 10
Views: 2977

Re: RPI reboots when powering motor with relay

You can support the Pi thru this period by putting a diode in its supply, check what voltage drop you get, and adding a small reservoir of energy by adding a small capacitor. The capacitor runs the Pi for 1 second, and the diode prevents the power going back towards the PSU. I'm trying to wrap my h...
by TimmR
Sun Dec 29, 2013 2:43 pm
Forum: Python
Topic: Python GPIO control slow script...
Replies: 13
Views: 4687

Re: Python GPIO control slow script...

I see, I will definitely try that one out than. I have some power problem to overcome first ^^
Cheers for the help!

I'm wondering if I can do multi task several function (noob-talk here) at the same time.
by TimmR
Sun Dec 29, 2013 1:18 pm
Forum: Python
Topic: Python GPIO control slow script...
Replies: 13
Views: 4687

Re: Python GPIO control slow script...

Thanks Dave,
About 30 minutes ago I've successfully applied this
code. Or at least I think it's the same. http://pythonhosted.org/RPIO/pwm_py.html

It helps a lot. but still it slows down half the speed if is activate the X and Y axis at the same time.
by TimmR
Sat Dec 28, 2013 7:36 pm
Forum: Beginners
Topic: RPI reboots when powering motor with relay
Replies: 10
Views: 2977

Re: RPI reboots when powering motor with relay

Thanks! It sure is a step forward! Now I can use the shield properly.
I've just happen to have two of each in my starterskid :P

But... the system still reboots after I switch the relay and so turn on the motor...
My uneducated guess would be a spike? Can I protect the circuit to such spikes?
by TimmR
Sat Dec 28, 2013 5:00 pm
Forum: Beginners
Topic: RPI reboots when powering motor with relay
Replies: 10
Views: 2977

Re: RPI reboots when powering motor with relay

I see that the RPI stays on when I power the
motor directly, before the RPI boots and keep
the motor running.

Now, I don't have any electrical knowledge.
But could there be some spike of something
on the moment the RPI runs AND I turn on the
relay, which turns on the motor?
by TimmR
Sat Dec 28, 2013 3:15 pm
Forum: Beginners
Topic: RPI reboots when powering motor with relay
Replies: 10
Views: 2977

Re: RPI reboots when powering motor with relay

Yeah! my first circuit diagram!
The relay is actually a relay shield (YwRobot)
The shield works fine.

And the power comes from one pc power.
Untitled.jpg
Untitled.jpg (40.43 KiB) Viewed 2962 times
The thing is that I really just want one power source.
The RPI is controlling a nerf Vulcan toy gun.
by TimmR
Sat Dec 28, 2013 2:58 pm
Forum: Beginners
Topic: RPI reboots when powering motor with relay
Replies: 10
Views: 2977

RPI reboots when powering motor with relay

Hi all, I have an old PC power adapter from which I get 12v and 5v. The 5v powers the RPI and the 12v powers a motor. The motor is turned on and off by a relay. And the grounds are connected. But when I turn on the relay (and the motor) the RPI reboots. The motor does work directly without relay whe...
by TimmR
Fri Dec 27, 2013 4:16 pm
Forum: Python
Topic: Python GPIO control slow script...
Replies: 13
Views: 4687

Python GPIO control slow script...

Hey all! This is my first Python script and I don't have a lot of programming experience for that matter. I'm working on a little script to control al small "robot" with my PS3 controller. Right now I'm working on a pan/tilt system with a steppermotor on the X-axis and two servos on the Y-axis. The ...
by TimmR
Wed Dec 18, 2013 11:19 am
Forum: Troubleshooting
Topic: shorted RPI, pray to the polyfuse gods?
Replies: 3
Views: 865

Re: shorted RPI, pray to the polyfuse gods?

Great, good tips!

but is there a way so that I can measure if the EasyDriver
will short a new RPI?
by TimmR
Wed Dec 18, 2013 8:07 am
Forum: Troubleshooting
Topic: shorted RPI, pray to the polyfuse gods?
Replies: 3
Views: 865

shorted RPI, pray to the polyfuse gods?

Hey all, lesson learned, do not work until late in the night. All worked fine but then I've excellently put an 12v power jumper into ground.. . - I've had the RPI on a 5v rail but the ground was connected. - Also connected was the EasyDriver 4.4 with a stepper motor (12V). - shorted with 12v to grou...

Go to advanced search