Controlling hobby servos
Re: Controlling hobby servos
But still, the servo is not moving at all, I don't understand why
And I think that I need a scope...
And I think that I need a scope...
Re: Controlling hobby servos
A scope has its place. I have both scopes and logic analyzers and I find that I use the logic analyzer alot more than I do the scope.
The logic analyzers typically will decode protocols like UART, I2C, and SPI for you, and can also be used for measuring PWM stuff.
I can definitely recommend the Logic series by https://www.saleae.com/ (no association). I have one of the original 8-channel Logic (not sold anymore) and one of the 16-channel Logic Pro's. For most things, 4 channels is adequate, and the new ones given you some number of analog channels as well.
I also really like that the UI software is cross platform.
I think that the Logic-4 is definitely worth it, and go for the Logic-8 if you can afford it (it supports higher speeds as well(. Although 4 channels seems to be enough for many things. The Logic-Pro-8 seems a bit steep for the typical hobbyist.
The logic analyzers typically will decode protocols like UART, I2C, and SPI for you, and can also be used for measuring PWM stuff.
I can definitely recommend the Logic series by https://www.saleae.com/ (no association). I have one of the original 8-channel Logic (not sold anymore) and one of the 16-channel Logic Pro's. For most things, 4 channels is adequate, and the new ones given you some number of analog channels as well.
I also really like that the UI software is cross platform.
I think that the Logic-4 is definitely worth it, and go for the Logic-8 if you can afford it (it supports higher speeds as well(. Although 4 channels seems to be enough for many things. The Logic-Pro-8 seems a bit steep for the typical hobbyist.
Re: Controlling hobby servos
Thanks Dave for the info, I'm thinking about buying the Logic-4
Re: Controlling hobby servos
Well, I own this one:https://www.lab-nation.com/
It combines a scope, logic analyser, and wave generator in a small form factor. And yes, even in scope mode it can recognise signals from I2C, SPI, RS232 etc.
I think it also depends where you are living, and what is locally available.
It combines a scope, logic analyser, and wave generator in a small form factor. And yes, even in scope mode it can recognise signals from I2C, SPI, RS232 etc.
I think it also depends where you are living, and what is locally available.
- danicampora
- Posts: 342
- Joined: Tue Sep 30, 2014 7:20 am
- Contact:
Re: Controlling hobby servos
Hey guys,
Finally fixed the Timer class, and now PWM can be generated down to 5Hz. The duty cycle resolution has been improved as well, and it is 0.01% (must be specified as fixed point e.g. 50.55% => dutcy_cycle=5055) Timer IDs start from 0 like the rest of the peripherals and the PWM pin is assigned automatically when creating the Timer channel. Check the updated docs for more details.
Latest release: https://github.com/wipy/wipy/releases/tag/1.2.0
Cheers,
Daniel
Finally fixed the Timer class, and now PWM can be generated down to 5Hz. The duty cycle resolution has been improved as well, and it is 0.01% (must be specified as fixed point e.g. 50.55% => dutcy_cycle=5055) Timer IDs start from 0 like the rest of the peripherals and the PWM pin is assigned automatically when creating the Timer channel. Check the updated docs for more details.
Latest release: https://github.com/wipy/wipy/releases/tag/1.2.0
Cheers,
Daniel
Re: Controlling hobby servos
That's awesome Daniel, it works like a charm now, thanks!!
- danicampora
- Posts: 342
- Joined: Tue Sep 30, 2014 7:20 am
- Contact:
Re: Controlling hobby servos
Hi mdgart,
I am glad to hear that, thanks for the feedback!
Cheers,
Daniel
I am glad to hear that, thanks for the feedback!
Cheers,
Daniel
Re: Controlling hobby servos
Hi Daniel,
after upgrading to https://github.com/wipy/wipy/releases/tag/1.2.0
everything works fine (including Timer with the new improvements) but I get :
>>> os.uname()
(sysname='WiPy', nodename='WiPy', release='1.1.1', version='v1.6-82-g12547ce-dirty on 2016-02-22', machine='WiPy with CC3200')
should not it be : release='1.2.0' ?
Thank you for taking time to improve Wipy despite the Lopy kickstarter !
Pascal
after upgrading to https://github.com/wipy/wipy/releases/tag/1.2.0
everything works fine (including Timer with the new improvements) but I get :
>>> os.uname()
(sysname='WiPy', nodename='WiPy', release='1.1.1', version='v1.6-82-g12547ce-dirty on 2016-02-22', machine='WiPy with CC3200')
should not it be : release='1.2.0' ?
Thank you for taking time to improve Wipy despite the Lopy kickstarter !
Pascal
- danicampora
- Posts: 342
- Joined: Tue Sep 30, 2014 7:20 am
- Contact:
Re: Controlling hobby servos
Hi PCA,
Uppsss... you are right. Fixed now and updated the release binaries. Thanks!
Cheers,
Daniel
Uppsss... you are right. Fixed now and updated the release binaries. Thanks!
Cheers,
Daniel