Shop OBEX P1 Docs P2 Docs Learn Events
PropStick Programing for Multi-Channel PWM Generator/ PLEASE HELP — Parallax Forums

PropStick Programing for Multi-Channel PWM Generator/ PLEASE HELP

radiola18radiola18 Posts: 4
edited 2013-12-10 01:11 in General Discussion
I'm New to this. I bought a PropStick USB and would like some tips on where to get started. I wanted to be able to use it to make a (multiple signals/channels) Pulse Width Modulation (PWM) Generator. First I need to install P8X32A-Setup-Propeller-Tool-v1.3.2., then I need to type a Firmware program? That's where I need some Help/Tips. What type of language is best for this? What sites or books will guide/teach me what I need to know? Maybe something already exist (Open Source) that I can work with or modify. I need to know the steps for Success. Any help would be Wonderful! Thanks, Warm regards, Derek

Comments

  • BeanBean Posts: 8,129
    edited 2013-12-04 04:52
    Derek,
    Check the OBEX (Object Exchange). http://obex.parallax.com/search/pwm

    Bean
  • radiola18radiola18 Posts: 4
    edited 2013-12-06 00:08
    Thanks, I'll check it out. I can use all the help I can get. Thanks again, Derek
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-12-06 01:02
    Can you give more details about what you're trying to do?

    How many PWM channels do you need? What frequency and resolution do you need/want?

    I posted a two channel PWM object in post #45 of Xanadu's project thread. The program would be easy to modify(by myself or someone else who knows PASM) to use more than two channels. I'm using a four channel version myself I'd be happy to post (I intend to do so soon anyway). I haven't figured out what the resolution and frequency limits are with the program yet but Xanadu is using it at 20KHz and seems to like it.

    There's a 32 channel PWM object but it's not suited for all PWM applications since it doesn't use a normal PWM frequency. It would work well with LEDs.

    I've been collecting a bunch of links in an index I keep (see my signature). In post #3 of my signature, I have links to Propeller tutorials. I learned to use the Propeller from reading the material listed in those links and reading a bunch of posts in the Propeller forum. (It took me a while to get my head around the whole cog RAM vs hub RAM thing. Basically, you don't worry about cog RAM unless you're programming in PASM. Spin only uses hub RAM even when you launch a Spin method into a new cog.)
  • radiola18radiola18 Posts: 4
    edited 2013-12-07 01:08
    Freq. Be able to set 0-50khz, resolution best I guess. A gated type pulse train. only like 3 channels. I hope the pics help. Warm regards, Derek
    40Khz square wave modulated at 600Hz.png
    Gated Pulse Train.png
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-12-07 09:05
    I'm pretty sure that just the sort of thing the Prop is really good at but I'm not aware of any software written for the Propeller to do a gated type pulse train.
  • radiola18radiola18 Posts: 4
    edited 2013-12-10 01:11
    Thanks, Duane :)
Sign In or Register to comment.