|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#12
|
|||
|
|||
|
Re: Speed controlling a relay..?!?!?one/????
Quote:
Spikes do use mechanical parts. They do not like being switched quickly. However, nothing says you can't do so provided you are willing to live with the consequences. It is very possible that you will burn your Spike out. Modify this code to fit it into your program. spike_pwm_timer++; if(spike_pwm_timer>=spike_pwm_max_value) spike_pwm_timer=0; spike=spike_pwm_timer<spike_pwm_ontime; This will pulsewidth modulate your spike's output with a frequency of 40Hz/spike_pwm_max_value, with a duty cycle of spike_pwm_ontime/spike_pwm_max_value. I did this one year for the last 8 rounds of nationals. It worked, sort of. I think my values were spike_pwm_max_value 32 spike_pwm_ontime 10 but your mileage may vary. Again, you do run the risk of breaking things, so don't blame me for lighting your Spikes on fire. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Controlling motor speed | WGRAY | Programming | 9 | 16-02-2009 22:50 |
| Controlling | team 803 | Programming | 10 | 21-02-2006 13:56 |
| Edit- Can we connect more than one speed controller fan per breaker? | DemonYawgmoth | Rules/Strategy | 7 | 03-02-2006 21:37 |
| Controlling motors | railerobotics | Programming | 6 | 17-01-2006 17:17 |
| <R86> No more than one motor may be connected to each speed controller. | Michael Hill | Electrical | 2 | 08-01-2006 02:00 |