Controlling hobby servos

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
mdgart
Posts: 10
Joined: Mon Feb 08, 2016 8:04 pm

Re: Controlling hobby servos

Post by mdgart » Thu Feb 18, 2016 4:46 pm

But still, the servo is not moving at all, I don't understand why

And I think that I need a scope...

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Controlling hobby servos

Post by dhylands » Thu Feb 18, 2016 5:54 pm

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.

mdgart
Posts: 10
Joined: Mon Feb 08, 2016 8:04 pm

Re: Controlling hobby servos

Post by mdgart » Thu Feb 18, 2016 6:26 pm

Thanks Dave for the info, I'm thinking about buying the Logic-4

RinusW
Posts: 9
Joined: Wed Oct 07, 2015 10:51 am

Re: Controlling hobby servos

Post by RinusW » Thu Feb 18, 2016 7:31 pm

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.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Controlling hobby servos

Post by dhylands » Thu Feb 18, 2016 7:50 pm

That looks like a nice one too.

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: Controlling hobby servos

Post by danicampora » Tue Feb 23, 2016 8:44 pm

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

mdgart
Posts: 10
Joined: Mon Feb 08, 2016 8:04 pm

Re: Controlling hobby servos

Post by mdgart » Fri Feb 26, 2016 12:09 am

That's awesome Daniel, it works like a charm now, thanks!!

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: Controlling hobby servos

Post by danicampora » Fri Feb 26, 2016 8:27 am

Hi mdgart,

I am glad to hear that, thanks for the feedback! :-)

Cheers,
Daniel

PCA
Posts: 10
Joined: Tue Oct 27, 2015 10:20 pm

Re: Controlling hobby servos

Post by PCA » Fri Feb 26, 2016 10:27 pm

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

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: Controlling hobby servos

Post by danicampora » Fri Feb 26, 2016 11:22 pm

Hi PCA,

Uppsss... you are right. Fixed now and updated the release binaries. Thanks!

Cheers,
Daniel

Post Reply