Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
Tips:
For a full reference visit the Markdown syntax.
Posted by @ClearMemory041063
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Light Seeking System
Two photo resistors are positioned on opposite sides of a rectangular beam. It the beam is pointing at a light source both photoresistors produce equal values. If not aligned this balance is upset by the shadow of the beam and the difference in photo resistor output is used to rotate the beam using a stepper motor.
Gnd-- 10k--AnalogInPin--Photoresistor--3.3V
The code
Stepper Motor Stuff
Big Easy
or
BigEasy2
or for smaller stepper motors
EasyDriver
Wiring
Pico Bigeasy
Gnd Gnd
B7 Dir
A8 Step
Powered the BigEasy board with 12V
1 Attachment