Search found 7681 matches

by RogerClark
Sun Feb 11, 2018 8:35 pm
Forum: General discussion
Topic: Timer "Input Capture" ?
Replies: 37
Views: 2096

Re: Timer "Input Capture" ?

Thanks Steve

I will try your code later today.
by RogerClark
Sun Feb 11, 2018 8:34 pm
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Alvin: 'stm32flash' is not recognized..
Replies: 13
Views: 204

Re: Alvin: 'stm32flash' is not recognized..

:lol:

I wonder why your antivirus blocked that exe.. did it block all exes
by RogerClark
Sun Feb 11, 2018 10:40 am
Forum: General discussion
Topic: Timer "Input Capture" ?
Replies: 37
Views: 2096

Re: Timer "Input Capture" ?

I've reverted the commit that added the Input Capture feature as the code I took from this thread as some major problems :-(
by RogerClark
Sun Feb 11, 2018 5:58 am
Forum: General discussion
Topic: AC Dimmer
Replies: 49
Views: 927

Re: AC Dimmer

I know this a bit of a cross posting.... But, here is the code I'm using to test ramping the dimmer up and down #include <Streaming.h> uint16_t pulseDelay = 8500; uint16_t pulseWidth = 100; void setup() { pinMode(PA1, PWM); // setup PA1 (Timer2 channel 2) to PWM (one pulse mode) pinMode(PA0, INPUT);...
by RogerClark
Sun Feb 11, 2018 5:06 am
Forum: Off topic
Topic: i2c device not visible
Replies: 10
Views: 144

Re: i2c device not visible

@zmemw16 Some people have reported issues with multiple different types of I2C devices on the same bus. Our guess was that there is possibly a problem with the Hardware I2C doing something there its not possible 2 or libs all using HardWire However no one has really confirmed whether there is defini...
by RogerClark
Sun Feb 11, 2018 3:03 am
Forum: General discussion
Topic: Timer "One-Pulse" mode
Replies: 14
Views: 259

Re: Timer "One-Pulse" mode

Steve I got it working #include <Streaming.h> uint16_t pulseDelay = 3000; uint16_t pulseWidth = 100; void setup() { pinMode(PA1, PWM); // setup PA1 (Timer2 channel 2) to PWM (one pulse mode) pinMode(PA0, INPUT); // setup PA0 (Timer 2 channel 1) as input (capture input mode) Timer2.pause(); // stop t...
by RogerClark
Sun Feb 11, 2018 3:03 am
Forum: General discussion
Topic: Timer "Input Capture" ?
Replies: 37
Views: 2096

Re: Timer "Input Capture" ?

Thanks

I'll look at that other code
by RogerClark
Sun Feb 11, 2018 3:02 am
Forum: Off topic
Topic: i2c device not visible
Replies: 10
Views: 144

Re: i2c device not visible

Its possible that you'll need to comment out the include for the other I2C lib, as its constructor may interfere with the operation
by RogerClark
Sun Feb 11, 2018 3:00 am
Forum: General discussion
Topic: AC Dimmer
Replies: 49
Views: 927

Re: AC Dimmer

@dannyf Re: On / Off or PWM vs dimming I think it probably depends on how the electricity company measures the power you are consuming or exporting. I'm actually building this for a fairly small scale water heater (1kW or 2kW), though it may get used for larger things The existing system uses a rela...
by RogerClark
Sat Feb 10, 2018 11:30 pm
Forum: General discussion
Topic: Timer "One-Pulse" mode
Replies: 14
Views: 259

Re: Timer "One-Pulse" mode

Steve BTW. I see what you mean about not setting up the mode at all TIMER2_BASE->CR1 = ( TIMER_CR1_OPM ); // one pulse mode The instructions to do that were in a completely different paragraph in the manual Also. I see that you were using the Timer3 output on PA6 I'll change my hardware and try that