sorry im new to forum use or even being a part of a community so i apologize if i post in the wrong area, not doing it right or im being annoying with my ocd. i have been trouble shooting for two days and im starting to think its hopeless. it will step forwards and seems to be going through all the steps even when altered by the rotary encoder including random. the reverse does nothing. pressing a step button lights it up but as soon as it releases it resets back to step 1 lit. zero turns and keeps all lights off. the lights get increasingly more dim the further from step 1 they are until step 8 doesnt light at all but is still activating. im using an elegoo board but didnt have any issue flashing it at all. i am finding no continuity or wiring errors…i chased my tail for hours looking for a short i could hear on the meter and finally found it on top of the arduino pin connectors but now theres no more and its still acting odd. ive tested every connection for continuity and every component and voltage i can think of. im not the smartest man but i feel like ive been pretty thorough. edit: forwards and reverse are both working now. im reading a voltage of 1.74 volts at every button switch even with the diodes going to the gate bus after the point im measuring at…which is making me think its feeding back into switch one from any switch somehow and triggering perma reset…i checked all diode directions and they seem ok…maybe a bad diode somewhere? the rotary is acting odd…the first 7 positions just bounce between the first two steps…the rest seem to be working but position 11 is random and the last position is some sort or orderly pattern. im gettting .86v at reset pin whenever any step is lit. its almost like they are backfeeding from the pulldowns to ground from each switch into the next one…i just ran them all to the led ground bus from before the diode to the gate in parallel with the button out and diode. im so angry at myself for not being able to figure this easy stuff out
Cut out old board put in new board with no diodes or resistors used breakout to eliminate myself from the equation and it’s acting exactly the same. I’m so confused. I’ve removed both wires from the reset pin and it’s still staying stuck in reset when anything is pressed.
Verify the version of the firmware you used contains this:
#define STEP1 2 // D2
#define STEP2 3 // D3
#define STEP3 4 // D4
#define STEP4 5 // D5
#define STEP5 6 // D6
#define STEP6 7 // D7
#define STEP7 8 // D8
#define STEP8 9 // D9
#define RESET 10 // D10
#define ZERO 11 // D11
#define FORW 12 // D12
#define BACK 13 // D13
#define ROTARY 14 // A0; read as analog
#define BUTTON1 10 // D10; same as RESET (same action)
#define BUTTON2 15 // A1; read as digital
#define BUTTON3 16 // A2; read as digital
#define BUTTON4 17 // A3; read as digital
#define BUTTON5 18 // A4; read as digital
#define BUTTON6 19 // A5; read as digital
#define BUTTON7 A6 // A6; must be read as analog
#define BUTTON8 A7 // A7; must be read as analog
and then verify the connections in your hardware match these as shown in the schematic:
STEP pins are D2 through D9 and must connect to one end terminal of a toggle switch (SPDT on-on), other end terminal to ground, middle terminal to multiple places (LED; two pots; 1k resistor to diode to step gate jack). The two pots have their other ends connected to ground and wipers to diodes to the CV buses.
RESET, ZERO, FORW, BACK are D10 through D13 and connect to Zener diodes to ground; 1k resistors to (10k resistors to ground and diodes to jacks); and toggle switches (SPDT momentary (on)-off-(on)). FORW and BACK go through a DPDT toggle switch between the diodes and the resistors.
BUTTON pins are D10 (same as RESET) and A1 through A7, and connect to push button (other end of button to +5 V); 10k resistor to ground; diode to BUTTON_GATE bus.
Rotary switch center pin connects to A0. Pin 1 connects to ground and pins 1–10 connect to next consecutive pin via a 1k resistor.
i have ground into pin1, 1k between each up to 11 and vcc coming in on 11 because thats how i thought it showed on the schematic. i had zeners on the first board it didnt make a dif
Yes, +5 V to rotary switch pin 11.
ill go through all of your steps one by one and see if i missed something thank you
code is fine. i did find that i have the gate switches wired wrong with the step going into the middle pin and then all the stacked outputs on one end and ground on the other. but that should only make the gate in not work id assume…ill fix it and see.
as expected that had no effect on its operation but at least its one thing i wont have to figure out later. ill give it one more going over but i have checked everything many times. i even used a sperate bus board to run everything to (power ground cv1 cv2 and gate) so i could trace it easily. starting to wonder if this arduino has a weird quirk.
thank you for all of the help truly. i specifically remember starting to wire those switches the right way then second guessing myself because i was reading the pin numbers all dyslexic. i used sams video to guide me through the pots part so that should all be fine. today ill try using my scope on it to see if that reveals any new information. not really sure what to test but im willing to try anything at this point so i can get back to making music. this three week detour of issue after issue as i learn this stuff the hard way has kept me away from my main goal of freedom while recording
just to verify its not wrong…at each button i have 5v going in one end…and the other is connected to a wire going straight to the arduino, a 10k resistor to the led ground bus, and a diode with the stripe furthest from the button connected to kb gate bus
theres a resistor on each of the cv and gate outputs at the other end. pots are (from the back) left leg in from center of switch, center through diode line furthest from pot to cv bus, right ground bus. top of switch is in from arduino. center is out to led+, to step out through diode facing with line closest to jacks. rfbz switches are center 5v and the sides the outputs to the board with 10k pulldowns. (took jacks out of the equation for now but they were wired with diodes with line away from jack and other side ground
i tried running it without pulldowns on the momentary toggles but it was doing the thing that other guy had happen where if you touched a wire it spazzed out and jumped all over the place
i just ran 12v into vin and put exclusive ground to psu on one side and then ran 5v to the project out of 5v and used the ground on opposite side of arduino for that ground bus to ensure all grounding was returning to arduino and not the psu in case there was some kind of thing going on. no luck
i feel if i could just identify why it wants to reset to step one being lit every time a button is released the rest would just work. i think its sending all the juice to button one and theres not enough to light anything else fully. ive removed the reset connections completely…ill try removing the zero connector in case im confused what state its trying to be in…otherwise im about to rip it all out and start fresh.,
whenever step 1 is lit the voltage at zero is 0. the voltage at reset is .84 volts. if another step is pressed, the voltage goes up to .99 volts at reset pin until released, step one relights and voltage drops to .84 again.
when no step is lit after hitting zero, the voltage at reset is 0. different buttons change the voltage by varying amounts. im no less confused but this is the info ive gathered.
ok. without anything connected to reset the voltage stays at 0, but the same reset behavior is happening. the step out seem to work all 0 except active steps are 5v. pins from buttons are all reading 1.74 volts im assuming my issue is this but im not sure where the dang voltage is coming from. just tested the rotary output…its either reading very close to zero at the ends of its rotation or very close to 5v along the way not really much movement between those values
the voltage was coming from the ground rail of the LED which i had the pulldowns on. i removed the connection to the rail just to test…it got rid of the random voltage but its behaving exactly the same. i give up i dont knnow what the heck is wrong.
i rewired the entire project referencing the original drawings and the updated schematics and checked everything ten times along the way. gave every ground bus its own path to ground…and its still doing the same thing. i ordered a legit nano for 27$ just to see if it makes any difference at all. i can always return it i guess. i had no idea such a relatively simple project would give me so much trouble
Ok so I’m about to feel really stupid I think. I was running more tests because I was getting off led reactions when giving each a voltage. So I connected my component tester to the led and it’s reading as two diodes…I think one or more of the built in led are just installed backwards from the factory…most lined up with the half red casing so I didn’t question it.
Ffs.