Search found 1732 matches

by Pito
Mon Feb 19, 2018 12:28 am
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 146
Views: 6985

Re: [libmaple] Black F407VET6

Any example for a simultaneous regular ADC sampling (2 ADCs sample a channel at the same exact time, no channel's scan - scan disabled)?
by Pito
Sun Feb 18, 2018 2:30 pm
Forum: Code snipplets
Topic: Reading Battery Voltage
Replies: 4
Views: 75

Re: Reading Battery Voltage

Do you switch off/on the bottom R2 divider resistor?
by Pito
Sat Feb 17, 2018 5:29 pm
Forum: Projects
Topic: Lightpen
Replies: 5
Views: 135

Re: Lightpen

Which electron beam you want to detect? There are 3 (when talking a color TV) :) Also mind in the areas where you see "black" no electron beam is present. Such lightpens worked: 1. you scanned with the ebeam "on" the entire screen (the scanning driven by some "electronics"), and when detected the li...
by Pito
Sat Feb 17, 2018 5:04 pm
Forum: STM32F103 Boards
Topic: STM32F103C8T6 (blue pill) audio feed through with PWM and timers
Replies: 7
Views: 187

Re: STM32F103C8T6 (blue pill) audio feed through with PWM and timers

To your first source: 1. I would set sampling rate equal to the pwm freq (10kHz) 2. you still use "65535" in your map(), that is wrong, you have to use "maxduty" instead - this your line is wrong outputValue = map(inputValue, 0, 4095, 0, 65535); //ADC uses 12 bit (4096 values), map to output of 16 b...
by Pito
Fri Feb 16, 2018 8:29 am
Forum: STM32F103 Boards
Topic: Reading Analog Voltage on STM32F103C8T6
Replies: 7
Views: 232

Re: Reading Analog Voltage on STM32F103C8T6

Analog voltage to read is easy: Example (provided as-is, no warranties of any kind, use at your own risk): // Example how to measure 5-12V DC with BluePill // You must have a voltage divider wired at the stm32 analog input // Example of a voltage divider R1=33k, R2=10k for max 12V input // Provided ...
by Pito
Fri Feb 16, 2018 7:54 am
Forum: Off topic
Topic: I.C. Tester
Replies: 3
Views: 81

Re: I.C. Tester

MInd the 74xx are 5V, stm32 is 3.3V..
by Pito
Thu Feb 15, 2018 11:16 pm
Forum: STM32F103 Boards
Topic: STM32F103C8T6 (blue pill) audio feed through with PWM and timers
Replies: 7
Views: 187

Re: STM32F103C8T6 (blue pill) audio feed through with PWM and timers

The .. period = 100; // PWM period in useconds, freq 10kHz maxduty = pwmtimer.setPeriod(period); .. sets the PWM period to 100usecs (for example), AND(!), it returns the "maxduty" which is a number <=65535 and its value depends on the set pwm period ( it is not always 65535!!).. You have to map your...
by Pito
Wed Feb 14, 2018 9:09 am
Forum: USB to Serial adaptors
Topic: FT232H - setting DTR high or to input
Replies: 5
Views: 113

Re: FT232H - setting DTR high or to input

In TeraTerm you may set/reset the DTR or RTS with "macros" (Control->Macro, you have to create a .ttl file with the command(s)).

setdtr 0/1
setrts 0/1
by Pito
Mon Feb 12, 2018 4:46 pm
Forum: USB to Serial adaptors
Topic: FT232H - setting DTR high or to input
Replies: 5
Views: 113

Re: FT232H - setting DTR high or to input

DTR blinks with termite. Thanks.
A pity TeraTerm is missing it..