rxz29
Joined: 08 Nov 2010 Posts: 1
|
PIC controls |
Posted: Mon Nov 08, 2010 9:48 pm |
|
|
Hey everyone, I have a small problem. I have a PIC 16F886, which I use to perform a PWM. I want to use this to control a DC motor, so I need to change the duty cycle. Here's the trick, I have a wireless accelerometer, which transmits data across a socket. I have written a program in C that collects the data each second and adds it to an array, so as long as the program is running, the array changes every second. I want to use this data to change the duty cycle of the PIC in real time. Does anyone know how I might be able to import the data (in real time), so that I can control the duty cycle based on the changing values of the array? |
|