Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blockly][Codegenerator] wrong voltage calculation in Soundsensor (DF Robot) Block #368

Open
janwirwahn opened this issue Nov 20, 2024 · 0 comments
Assignees
Labels
Blockly Everything which is related to blocks

Comments

@janwirwahn
Copy link
Member

MCU Versions

  • senseBox MCU
  • senseBox MCU mini

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);

@janwirwahn janwirwahn added the Blockly Everything which is related to blocks label Nov 20, 2024
@janwirwahn janwirwahn changed the title [Blockly][Codegenerator] [Blockly][Codegenerator] wrong voltage calculation in Soundsensor (DF Robot) Block: Nov 20, 2024
@janwirwahn 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blockly Everything which is related to blocks
Projects
None yet
Development

No branches or pull requests

2 participants