You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
janwirwahn
changed the title
[Blockly][Codegenerator]
[Blockly][Codegenerator] wrong voltage calculation in Soundsensor (DF Robot) Block:
Nov 20, 2024
janwirwahn
changed the title
[Blockly][Codegenerator] wrong voltage calculation in Soundsensor (DF Robot) Block:
[Blockly][Codegenerator] wrong voltage calculation in Soundsensor (DF Robot) Block
Nov 20, 2024
MCU Versions
Block description
wrong voltage calculation in Soundsensor (DF Robot) Block:
float v = analogRead(sensorPin) / 1000.0;
Expected block behaviour
Has to be changed to:
float v = analogRead(sensorPin) * (3.3 / 1024.0);
The text was updated successfully, but these errors were encountered: