0
votes
0answers
34 views

PIC32 PWM minimal example

I am having trouble getting a simple PWM output to work at all on a PIC32MX775F512H. Looking online, this seems to be all I need to get something working: ...
2
votes
1answer
79 views

Servo position with no pulse

I am using a PIC 16F884 to run 2 motors and 2 servos. The motors are using the onboard PWM module, and I am bit banging PWM for the servos on Timer 2. With only one servo being controlled, it ...
1
vote
1answer
42 views

PWM npn sinking signal

I have a stepper motor(with STR2 Step Motor Drive) which needs npn sinking signal to operate. dsPIC33EP512mu810 is capable of generating high resolution pwm. However, the PWM signal can only turn on a ...
1
vote
2answers
265 views

PWM Motor speed control using PIC; What mosfet to use

I have a 5V PIC16f877a controlling the speed of the motor 12V which has a power rating of 8W; the current will be around(600mA) am I correct? The motor is basically a small water pump commonly used ...
2
votes
2answers
313 views

Software PWM on a PIC10F202 (looped fading LED)

I'm currently trying my best to code a software solution for PWM on a PIC20F202 but I have one issue. I'm trying a looped fade out and fade with a LED and it's doing fine and very smoothly but on ...
2
votes
0answers
297 views

Need help with PIC16F887 PWM output

I am trying to get the PWM subsystem on a PIC16F887 working. I've gone over this several times and just cant seem to find my problem. This is part of a larger program, but for simplicity I re-wrote ...
2
votes
1answer
248 views

PIC18F1320 with 4 separate PWM channels and C18 compiler for an RGB LED

I'm pretty new to microcontroller programming and I find the lack of documentation on certain features of PICs with C18 compiler frustating. I've been trying to make a simple 3-color-led light up ...
2
votes
0answers
239 views

How do I modulate PWM frequency in realtime with a Microchip dsPIC (or PIC24)? [closed]

This question is a direct continuation of the question/answer found at the link below. Skip to the last answer/comments given, as this is where my question begins (I don't have enough rep. points to ...
0
votes
2answers
639 views

6 channel PWM with USB support

I am looking for a IC with mininum 6 channel PWM output and preferably USB support so that I can control it uing a software. Any ideas ?
1
vote
2answers
2k views

Designing high-power LED driver with PWM

Update: Provided I set up the PIC and program it correctly (planning on using this guide to interface it as a USB HID device), would this be a suitable configuration? I'm not entirely certain how I ...
2
votes
2answers
1k views

PIC measuring PWM pulse length

I'm just getting started with PIC processors, driven mainly by a shortage of the simpler PICAXE from my local retailer. My question is, how do I read the length of a PWM pulse on a certain input pin ...
4
votes
1answer
355 views

Adding third channel to the PIC32 starter kit `DMA chaining and PWM´ example

I just received my PIC32 starter kit, and played with the demos. I have never used any higher-end uCs than the 8-bit PICs. One of the new things to me in the PIC32 is DMA. The starter kit came with ...
-2
votes
1answer
192 views

What the relation between the movement of a motor and the PWM voltage [closed]

I am making a robot that moves in a circle with 2 wheels, each wheel moves using a DC motor with 12V. I want a relation between the circle and the voltage that is produced by PWM.
2
votes
1answer
829 views

How do I select what values to load in CCPR1L register (for generating PWM signal with PIC)?

I need to generate PWM signal with PIC18F2550 microcontroller at near 20kHz. I read the datasheet, I found it too complex and confusing, then I started to search for a sample code on the net to ...
3
votes
3answers
522 views

Question on RGB LED Array

I have been looking around at 4x4x4 and 8x8x8 LED Cubes and I had a couple of question about them. A few I have seen have a full range of colors from the LEDs which I am assuming means they are using ...
-1
votes
3answers
1k views

Control hacked servo motor speed using L293D and PWM

I've got a L293D and I've got a PIC16F877A outputting PWM. It's not real PWM, just using Timer0 to turn on a pin for 2ms and off for 18ms, bringing a total of 20ms period. I got VSS, VC, CHIP 1 ...
3
votes
3answers
4k views

How do I modulate PWM frequency in realtime with a Microchip dsPIC?

I'm trying to change the PWM output frequency roughly once a millisecond using a dsPIC33FJ256GP710, and I'm having mixed results. I first tried this: ...