Go Down

Topic: What's wrong with my schematic? (Read 127 times) previous topic - next topic

Sly97

Hi guys,
I'm new on this forum, and in arduino as well. I want to build a MIDI controller with arduino and convert serial to midi via Hairless Midi software, but i found something strange.

Here is my breadboard:


(https://imgur.com/a/ZE7o3)

(https://imgur.com/p5V9pmC)

(The led is not used in this project, i just put it in to check if the button is working.) And here comes the strange thing. if i touch the led's resistor with my hand, the code, and Hairless Midi working fine. And i got the button's 0, 127 value like this:


(https://imgur.com/aaTxwjj)
But if im not touching it, the numbers are constantly changing. There is some schematic problem i cant recognize.

PLS help me! I know this question is kinda messy, but if you can help me, you will make my life sooo much easier

Thx guys

vinceherman

I did not follow the links to your pictures (you can host them here).

But it sounds like you have a floating input.
A pull-up resistor is a common fix.

TomGeorge

#2
Apr 17, 2018, 12:21 pm Last Edit: Apr 17, 2018, 12:23 pm by TomGeorge
Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html. then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

You should be able to post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png, in your post.


Thanks.. Tom.. :)
Everything runs on smoke, let the smoke out, it stops running....

Go Up