Search found 14 matches

by windy54
Tue May 19, 2020 6:03 pm
Forum: WiPy and CC3200 boards
Topic: Trying to use 4 timers for PWM and fifth for Irq
Replies: 3
Views: 35638

Re: Trying to use 4 timers for PWM and fifth for Iraq

Thanks for response. I agree one timer could generate the 50Hz, how is the duty cycle generated, in software? The documentation is recommending the use of timers so it is all handled for you in hardware. When the channel is in PWM mode, the corresponding pin is assigned automatically, therefore ther...
by windy54
Sat May 16, 2020 8:54 am
Forum: WiPy and CC3200 boards
Topic: Trying to use 4 timers for PWM and fifth for Irq
Replies: 3
Views: 35638

Re: Trying to use 4 timers for PWM and fifth for Iraq

I hate auto correct, IRQ not Iraq !


Sent from my iPad using Tapatalk
by windy54
Sat May 16, 2020 8:21 am
Forum: WiPy and CC3200 boards
Topic: Trying to use 4 timers for PWM and fifth for Irq
Replies: 3
Views: 35638

Trying to use 4 timers for PWM and fifth for Irq

Hi, During this Covid 19 lockdown I have been trying to finish my I completed projects. When I first received my WIPY I tried building a bob the biped robot but never completed it. So, I have resurrected my WIPY and updated to the latest firmware. I found some great Arduino code and decided to use t...
by windy54
Wed Nov 27, 2019 10:40 am
Forum: micro:bit boards
Topic: bytearray objects use too much memory?
Replies: 3
Views: 3876

Re: bytearray objects use too much memory?

Thanks for the responses, I went with Jimmo's suggestion and have managed to control 136 leds without it crashing.

On to my next problem.

Steve
by windy54
Tue Nov 26, 2019 4:59 pm
Forum: micro:bit boards
Topic: bytearray objects use too much memory?
Replies: 3
Views: 3876

bytearray objects use too much memory?

There is a small chance I have found a problem with the way bytearray objects are created on the microbit. Background: I purchased a http://rasp.io/inspiring/ set of leds when the kickstarter was launched a couple of years ago. They are basically SK9822 leds in various shapes, straight 8, triangle o...
by windy54
Wed Apr 20, 2016 7:54 pm
Forum: WiPy and CC3200 boards
Topic: Powering 5V micro servos from expansion board
Replies: 2
Views: 4766

Powering 5V micro servos from expansion board

Progress to date: 1 controlled led using Blynk 2 controlled a single servo so now I am moving on to control 4 servos, as with another post I want to use my WiPy for a Bob the Biped robot. I have looked at the expansion board schematics and if I understand them correctly I can power the expansion boa...
by windy54
Wed Apr 20, 2016 7:31 pm
Forum: WiPy and CC3200 boards
Topic: Controlling hobby servos
Replies: 21
Views: 24662

Re: Controlling hobby servos

got my code to work,
mode should be Pin.ALT, not Pin.OUT
by windy54
Tue Apr 19, 2016 6:54 pm
Forum: WiPy and CC3200 boards
Topic: trying to use GP11 as PWM
Replies: 1
Views: 2402

Re: trying to use GP11 as PWM -Fixed

I think I need my own forum to post my questions, because as soon as I post a question I manage to fix it! g=Pin('GP11',mode=Pin.OUT, alt=3) should be g=Pin('GP11',mode=Pin.ALT,alt=3) obvious once you know so here is some simple code I have used to drive my servo between the zero and 180 position. f...
by windy54
Tue Apr 19, 2016 5:58 pm
Forum: WiPy and CC3200 boards
Topic: trying to use GP11 as PWM
Replies: 1
Views: 2402

trying to use GP11 as PWM

I am trying to use GP11 as a PWM output to control a servo motor. Based on the pinout and alternate functions table I should use alternate function 3. So I have tried the following in the REPL >>> from machine import Pin >>> g=Pin('GP11',mode=Pin.OUT, alt=3) Traceback (most recent call last): File "...
by windy54
Mon Apr 18, 2016 7:21 pm
Forum: WiPy and CC3200 boards
Topic: Controlling hobby servos
Replies: 21
Views: 24662

Re: Controlling hobby servos

I have finally got the time to use my WiPy and want to use it to drive some servos, I have only had time for a quick look at the documents and it is going to be a few days before I can try it out. So I thought I might save myself some time by posting my understanding of PWM on the WiPy and (politely...