Are those pots linear or logarithmic ??neo_nmik wrote: Mon Apr 12, 2021 6:27 pm When I poll them, I’m getting 0-1023 (10bit) which is fine for my use, but the upper range (roughly the last 1/4) are all responding 1023.
Search found 505 matches
- Mon Apr 12, 2021 6:38 pm
- Forum: General discussion
- Topic: Changing analogRead Voltage reference?
- Replies: 7
- Views: 8502
Re: Changing analogRead Voltage reference?
- Mon Apr 12, 2021 5:53 pm
- Forum: General discussion
- Topic: Changing analogRead Voltage reference?
- Replies: 7
- Views: 8502
Re: Changing analogRead Voltage reference?
Some STM32 MCUs have ADC Vref pins. F103C8(B) do not have those and Vdd is used as ADC reference voltage.
There is internal reference voltage but it's not used as ADC reference. It can be used to calculate (measure) Vdd using equation ag123 provided n post above:
e.g. if vrefint = 1.2v, and you ...
There is internal reference voltage but it's not used as ADC reference. It can be used to calculate (measure) Vdd using equation ag123 provided n post above:
e.g. if vrefint = 1.2v, and you ...
- Mon Apr 12, 2021 9:25 am
- Forum: General discussion
- Topic: Mux errors...
- Replies: 9
- Views: 7600
Re: Mux errors...
You need pull-up/down resistors on every button with shift registers.
- Sun Apr 11, 2021 12:30 pm
- Forum: General discussion
- Topic: How to measure the duty-cycle of an signal?
- Replies: 4
- Views: 4285
Re: How to measure the duty-cycle of an signal?
There is an example on STM32duino wiki:
https://github.com/stm32duino/wiki/wiki ... er-library
https://github.com/stm32duino/STM32Exam ... rement.ino
https://github.com/stm32duino/wiki/wiki ... er-library
https://github.com/stm32duino/STM32Exam ... rement.ino
- Fri Apr 09, 2021 7:53 am
- Forum: General discussion
- Topic: Solved: USB serial CDC stalls at initial connection
- Replies: 3
- Views: 6836
Re: USB serial CDC stalls at initial connection
I don't have any problems with this code (on F103, F401 and F411) on windows.
May there is some issue with linux connecting to STM.
Try adding
after Serial.begin();
This way, it will wait until usb connection is established .
May there is some issue with linux connecting to STM.
Try adding
Code: Select all
while(!Serial){}
This way, it will wait until usb connection is established .
- Tue Apr 06, 2021 3:08 pm
- Forum: Custom design boards
- Topic: Interruptions conflict stm32f103RB6T
- Replies: 7
- Views: 8620
Re: Interruptions conflict stm32f103RB6T
You can use only one pin with same number (eg. Px15) for interrupts.
And you have:
1. PA3, PB3, PC3
2. PA0, PB0
3. PB8, PC8
And you have:
1. PA3, PB3, PC3
2. PA0, PB0
3. PB8, PC8
- Fri Apr 02, 2021 8:50 pm
- Forum: STM32F4 based boards
- Topic: Black STM32F407ZG Board and LEDs
- Replies: 6
- Views: 23539
Re: Black STM32F407ZG Board and LEDs
It might be this board but there are few manufacturers that make them and there might be some differences.
LED_D1 and LED_D2 are just defined in board file as PF9 and PF10, it might be situation that when they wrote files for this board, they had different version, or just switched those 2 LEDs.
LED_D1 and LED_D2 are just defined in board file as PF9 and PF10, it might be situation that when they wrote files for this board, they had different version, or just switched those 2 LEDs.
- Fri Apr 02, 2021 8:35 pm
- Forum: General discussion
- Topic: Mux errors...
- Replies: 9
- Views: 7600
Re: Mux errors...
...
Thank you GonzoG! I did think that it might be an issue with speed... But I could've sworn I had it working before I built my little Bluepill-Uno strip board (I was also having loads of issues with bad breadboard cables :roll: )
I had same problem with Uno/Nano using port manipulation ...
- Fri Apr 02, 2021 4:35 pm
- Forum: General discussion
- Topic: Mux errors...
- Replies: 9
- Views: 7600
Re: Mux errors...
Multiplexers need some time after changing I/O address and STMs are much faster then Arduino UNO.
Try with 1ms delay before reading data.
Also, your code is highly inefficient. You can read all 3 multiplexers at once:
void getButtons(void){
keyTable = 0;
for (uint8_t i = 0; i < 8; i ...
Try with 1ms delay before reading data.
Also, your code is highly inefficient. You can read all 3 multiplexers at once:
void getButtons(void){
keyTable = 0;
for (uint8_t i = 0; i < 8; i ...
- Sun Mar 21, 2021 7:14 pm
- Forum: STM32F4 based boards
- Topic: STM32F407VET6 Black: RTC not keeping time
- Replies: 3
- Views: 14844
Re: STM32F407VET6 Black: RTC not keeping time
You need to set clock source to LSE before rtc.begin().