Search found 2051 matches

by stevestrong
Tue Feb 20, 2018 12:36 am
Forum: STM32F103 Boards
Topic: Complete list of pins for external attachInterrupt()?
Replies: 6
Views: 394

Re: Complete list of pins for external attachInterrupt()?

ADC examples you can find by searching the forum for "dual simultaneous ADC".
by stevestrong
Mon Feb 19, 2018 7:54 am
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 147
Views: 7036

Re: [libmaple] Black F407VET6

Yes, ADC is the next on the agenda, now that i have a reference signal from the DAC to sample ;)
by stevestrong
Sun Feb 18, 2018 9:08 pm
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 147
Views: 7036

Re: [libmaple] Black F407VET6

I needed a simple wave generator so I thought why not use the DAC of my F4 board. The result is a sketch which generates either a sine wave (using a lookup table) or a triangle wave (using the internal wave generator of the F4 chip). Configurable with some defines in the beginning of the sketch. As ...
by stevestrong
Sun Feb 18, 2018 12:43 pm
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 147
Views: 7036

Re: [libmaple] Black F407VET6

You must not and cannot calibrate the ADC of F4.
by stevestrong
Sun Feb 18, 2018 12:12 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 26
Views: 580

Re: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?

Oops, sorry.
My previous commit erroneously removed the predefined Timer instances.
I re-added them now.
Please check out my repo again.
(In the future please pay attention to the warnings printed by the Arduino IDE in the message window!)
by stevestrong
Sun Feb 18, 2018 11:07 am
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 26
Views: 580

Re: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?

Use GPIO_AFMODE_TIM3_5 instead of value 2

Code: Select all

gpio_set_af_mode(TIMER5_CH1_PIN, GPIO_AFMODE_TIM3_5);
or cast the second parameter

Code: Select all

gpio_set_af_mode(TIMER5_CH1_PIN, (gpio_af_mode)2);
by stevestrong
Sun Feb 18, 2018 9:06 am
Forum: STM32F4 Boards
Topic: [libmaple] FSMC LCD 16bit
Replies: 63
Views: 2843

Re: [libmaple] FSMC LCD 16bit

Which target/board do you use? Did you correctly selected it from the Arduino IDE menu option? With FSMC enabled or without? EDIT OK, I've figure it out, F4 without FSMC shows the symptom. I am investigating the issue. But if you use F4, why don't you enable FSMC by enabling this line: https://githu...
by stevestrong
Sat Feb 17, 2018 2:40 pm
Forum: General discussion
Topic: Has anyone tried using the APDS-9960 gesture sensor modules ?
Replies: 8
Views: 267

Re: Has anyone tried using the APDS-9960 gesture sensor modules ?

I reworked the Sparkfun lib to allow detection of more directions, as well as detecting approach/depart dynamic, not only static position near/far. Also, the user can select the connected I2C interface in the example sketch without changing something in the lib. Typical serial output from the gestur...
by stevestrong
Sat Feb 17, 2018 8:54 am
Forum: General discussion
Topic: analog watchdog in adc
Replies: 17
Views: 465

Re: analog watchdog in adc

The ISR definition is fine, only the code has to be extended to handle ADC2 registers, too. The handlers have to be defined for ADC2, similar to ADC1: adc_dev adc1 = { .regs = ADC1_BASE, .clk_id = RCC_ADC1, .handlers = {[3]=0}, //added by bubulindo. EOC, JEOC, AWD .irq_num = NVIC_ADC_1_2, }; /** ADC...