3.3V mini solar tracking system coding problem
Posted: Tue Nov 26, 2024 5:03 pm
Hi Folks first time here and this will be an easy question. but my Gr 8 daughter nor I can rewrite one line of code.
We are trying to change the code in the tutorial video
from :
analog read pin P1
TO:
set voltage to 3.3 × analog read pin P1 / 1023
We are unfamiliar with how to manipulate the code blocks such that we get:
set voltage to 3.3 × analog read pin (0 / 1023)
the division formula in brackets or in purple in coding area does not give us what we need. The P1 is underneath of the purple division formula. If that is understandible to anyone(?)
We have servo working but struggle to get the mini solar panel voltage to be read on either the microbit led's or on the laptop. I have voltage tested output solar with a volt meter at the micro:bit , ranging from 1 to 3.4v using room lighting and/or flashlight.
Thx in advance Rob for Sofia my gr8'R
(Administrator note / project url: https://www.sciencebuddies.org/science- ... ar-tracker )
We are trying to change the code in the tutorial video
from :
analog read pin P1
TO:
set voltage to 3.3 × analog read pin P1 / 1023
We are unfamiliar with how to manipulate the code blocks such that we get:
set voltage to 3.3 × analog read pin (0 / 1023)
the division formula in brackets or in purple in coding area does not give us what we need. The P1 is underneath of the purple division formula. If that is understandible to anyone(?)
We have servo working but struggle to get the mini solar panel voltage to be read on either the microbit led's or on the laptop. I have voltage tested output solar with a volt meter at the micro:bit , ranging from 1 to 3.4v using room lighting and/or flashlight.
Thx in advance Rob for Sofia my gr8'R
(Administrator note / project url: https://www.sciencebuddies.org/science- ... ar-tracker )