Hi, I'm working with a Nano Every and I don't get the following sketch to work. My laptop blocks the USB port as soon as I connect the ground to the LDR.
Previously I had some problems with another project connecting a button to it. This solved the issue but I cannot get my head arround the current issue.
As I'm (still) a mechanical engineer, can someone help me out?
Define blocks USB port? Does it put a gate in front of it, turn it off, what does it do and how do you know. What is the OS. Can you post a schematic as to how you have it wired, a frizzy thing is useless. Your link wiring diagram is correct. Also post a link to technical information on your LDR, amazon and other marketplaces do not usually have that information.
My laptop just shuts down power of the USB port, the LED on the Nano is not on anymore. Wireing is according the first link I posted, noting special only the difference between Uno/Nano.
I don't know which LDR I specifically use, it is a variable resistor, can it make that big of a difference?
I have a shiny metal sleeve where can I check it, does the size matter? Here is a picture of a similar car. You probably have some measuring tools, how about a multimeter to measure resistance? Posting a link to technical information on the LDR you have giving technical information would be a big help. Try to make an annotated schematic of how you have it wired. That is an electronics person's version of a blueprint. I will give you a big hint since you do not know what it is and cannot tell us we do not either since it is not working anywhere close to what is expected. At this point without more information I cannot help you. Good Luck@
This means you have a short circuit on the board you are trying to connect up.
That is you are connecting the positive directly to the negative. This will eventually break your USB port on your laptop for good.
Never change any circuit when it is powered up, you will end up damaging it.
Hi all, thank you for all the constructive feedback. I was again fiddling around and now it seems to work without any changes...? Or at least not that I know of.
With the LDR I get values between with current Dutch daylight but I'll try another resistor to make the range bigger.
Thanks again and hopefully I can figure the rest of my project out by myself.