Search found 9 matches

by i998
Sun Mar 05, 2023 5:55 am
Forum: General discussion
Topic: analogReference() and Vref for LibMaple Core for voltage measurement
Replies: 5
Views: 4512

Re: analogReference() and Vref for LibMaple Core for voltage measurement

Hi ag123,

Checked the code - all works and measured voltage and temp fine - thank you!

That helped with the original snippet - it has a typo - ADC_CR2_TSEREFE instead of ADC_CR2_TSVREFE

Once fixed, the snippet works too.

Regards, i998
by i998
Sat Mar 04, 2023 11:14 am
Forum: General discussion
Topic: analogReference() and Vref for LibMaple Core for voltage measurement
Replies: 5
Views: 4512

Re: analogReference() and Vref for LibMaple Core for voltage measurement

Hi ag123, thank you for the reply! Your code compiled fine, thanks a lot. I'll test the actual voltage measurement asap and place the results here. Question - what do do with a calibration procedure in the original code? adc_calibrate(ADC1); RE "example you linked is for libMaple / Roger's core...
by i998
Sat Mar 04, 2023 10:59 am
Forum: General discussion
Topic: Rotary encoder with blue pill
Replies: 31
Views: 40539

Re: Rotary encoder with blue pill

Glad it worked... Not sure I understand the requests... Button functionality is separate from the encoder one, so you can use the encoder without a button and https://www.arduinolibraries.info/libraries/analog-multi-button completely separately. Or do you want the encoder library to handle more butt...
by i998
Fri Mar 03, 2023 7:34 am
Forum: General discussion
Topic: Rotary encoder with blue pill
Replies: 31
Views: 40539

Re: Rotary encoder with blue pill

FYI - I made this one https://github.com/i998/ClickEncoder_STM32 for my MapleMini project, worked ok for me.
Hope it helps.

Regards, i998
by i998
Fri Mar 03, 2023 7:12 am
Forum: General discussion
Topic: analogReference() and Vref for LibMaple Core for voltage measurement
Replies: 5
Views: 4512

analogReference() and Vref for LibMaple Core for voltage measurement

Hi, Do you know if STM23F1 (Maple Mini) has an internal source for voltage reference - like Arduino Pro Micro: // an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328P //and 2.56 volts on the ATmega32U4 and ATmega8 (not available on the Arduino Mega) analogReference(INTERNAL); whi...
by i998
Sat Mar 26, 2022 12:52 pm
Forum: Libraries & Hardware
Topic: ClickEncoder library for STM32
Replies: 0
Views: 9167

ClickEncoder library for STM32

FYI - I made an updated version of a ClickEncoder library by 0xPIT so it can be used with STM32 LibMaple Core:

https://github.com/i998/ClickEncoder_STM32


Hope that helps.
by i998
Fri Mar 18, 2022 11:55 am
Forum: General discussion
Topic: Prototype for sort-of MVC pattern for Arduino / STM32
Replies: 0
Views: 2722

Prototype for sort-of MVC pattern for Arduino / STM32

Hi All, I believe many of us needed to make an application that, in fact, does some basic things: - Get input from a user - Collect data from other sources like sensors - Process the information and display the results based on the data captured and/or user input provided - Rinse and Repeat I 've ma...
by i998
Sat Mar 12, 2022 8:54 am
Forum: Libraries & Hardware
Topic: Library for SSD1306 displays with I2C interface
Replies: 1
Views: 5146

Library for SSD1306 displays with I2C interface

FYI - I made a version of a library for SSD1306 displays with I2C interface to use with STM32 LibMaple Core: https://github.com/i998/SSD1306_i2c_STM32 It uses a pointer to I2C object ( I use hardware I2C on Maple Mini) in order to reduce potential problems with redefining Wire etc. Hope that helps.
by i998
Wed Feb 23, 2022 2:29 am
Forum: General discussion
Topic: I2C - which library to use for hardware I2C
Replies: 0
Views: 2696

I2C - which library to use for hardware I2C

Hi All, What is the correct way to use hardware and software I2C on Maple Mini board with the Roger Clark's core ? There are Wire.h (that apparently has an issue 858 Wire_slave.h that was recommended as a solution ( update - tested and works) and TwoWire that I use as a hardware I2C as follows (test...

Go to advanced search