Search found 1626 matches

by Pito
Mon Dec 11, 2017 5:15 pm
Forum: General discussion
Topic: AC Dimmer
Replies: 29
Views: 162

Re: AC Dimmer

Afaik the MOC304(6,8)x devices include the zero switching detector, so you must not mess with a special circuit..
by Pito
Sat Dec 09, 2017 10:44 am
Forum: IDE's
Topic: [SOLVED] Sloeber and float sprintf: doesn't work
Replies: 15
Views: 202

Re: Sloeber and float sprintf: doesn't work

Not sure if it reloads them by just closing and opening, I believe it doesn't.
In Sloeber, in order to load new properties and settings, you have to go:

Project -> Properties -> Arduino -> Apply -> OK.
by Pito
Fri Dec 08, 2017 12:15 pm
Forum: IDE's
Topic: [SOLVED] Sloeber and float sprintf: doesn't work
Replies: 15
Views: 202

Re: Sloeber and float sprintf: doesn't work

Combiner recipe in platform.txt (it adds the {compiler.combine.flags} into the build): ## Combine gc-sections, archives, and objects recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path...
by Pito
Fri Dec 08, 2017 8:28 am
Forum: IDE's
Topic: [SOLVED] Sloeber and float sprintf: doesn't work
Replies: 15
Views: 202

Re: Sloeber and float sprintf: doesn't work

@Pito: have you added some personal directives in Sloeber that doesn't come with standard distribution? name=STM32 Boards (STM32duino.com) version=0.1.2 compiler.warning_flags=-w -DDEBUG_LEVEL=DEBUG_NONE compiler.warning_flags.none=-w -DDEBUG_LEVEL=DEBUG_NONE compiler.warning_flags.default=-DDEBUG_...
by Pito
Fri Dec 08, 2017 12:29 am
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 261

Re: Trying to make STM32F103 and HC-05 work together

HC-05 module is feeding from STM32F103's +5V and RX/TX are connected to the 5V tollerant PA9/PA10 pins. This is what you meant? Sorry, I'm not a HW guy,
The vanilla HC-05 module is 3.3V Vcc, unless it is a module with a 5V->3.3V voltage regulator (HC-05 mounted on a breakout board).
by Pito
Fri Dec 08, 2017 12:06 am
Forum: IDE's
Topic: [SOLVED] Sloeber and float sprintf: doesn't work
Replies: 15
Views: 202

Re: Sloeber and float sprintf: doesn't work

Works fine under Sloeber and Roger's core (BluePill): Before 1 After Value = 10000.000000 Before 2 After Value = 3333.333252 Before 3 After Value = 1111.111084 Before 4 After Value = 370.370361 Before 5 After Value = 123.456787 Before 6 After Value = 41.152264 Before 7 After Value = 13.717422 Before...
by Pito
Wed Dec 06, 2017 9:29 pm
Forum: General discussion
Topic: Password storage on a BluePill
Replies: 35
Views: 511

Re: Password storage on a BluePill

A trimpot with say 5-8 positions marked, simply rotate in a code, like with the famous knobs on a safe. Read the voltages, wait a second (or a specific time) at particular position and when the sequence and timing matches, it opens your safe :) Or, take an accel/gyro module an rotate your safe in a ...
by Pito
Wed Dec 06, 2017 1:01 pm
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 261

Re: Trying to make STM32F103 and HC-05 work together

What about

Code: Select all

void loop() {
    [...]
    if(Serial1.available()){
        buffer[received++ % buffer_size] = Serial1.read();
    }
}
PS: Afaik the HC-05 goes into sleep when not active for 5 secs.. You have to send a char to the module in order to wake the HC-05 up.
by Pito
Tue Dec 05, 2017 8:44 pm
Forum: Off topic
Topic: STM32 powered multimeter
Replies: 14
Views: 825

Re: STM32 powered multimeter

Do you mean they will do measurements with 2500 counts only? :D
by Pito
Tue Dec 05, 2017 8:33 pm
Forum: Off topic
Topic: STM32 powered multimeter
Replies: 14
Views: 825

Re: STM32 powered multimeter

I paid the same for the Metex M-3850 (long time back..) thus it is not expensive :P