PropStick Programing for Multi-Channel PWM Generator/ PLEASE HELP
radiola18
Posts: 4
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
Check the OBEX (Object Exchange). http://obex.parallax.com/search/pwm
Bean
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.)