...........................................................................
Help us help you.
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
Post a schematic.
Post an image of your project.
Which Micro Controller are you using?
Is this simulator code?
Please describe the problem better then you just did.
...............................................................................................................................................
Serial Input basics.
The events portrayed in this post are not all true. The names are not real names of real people and real organizations.
..............................................................................
Did you try wiring the LEDS the other way?
Thank you for your quick respond - I’m very new in this. First year of biomedical engineering.
Well, I have made the circuit our from a model our teacher provided us.
All the LED’s are accurately placed. They work - if I put the cord to output 13
If I put the cords to 5v all of the LEDs are Lightning up, but don’t blink which is a part of the assignment.
Your topic has been moved to a more suitable location on the forum. Introductory Tutorials is for tutorials that e.g. you write, not for questions. Feel free to write a tutorial once you have solved your problem
Please edit your opening post, select all code and click the </> button to apply so-called code tags and next save your post. It makes it easier to read, easier to copy and the forum software will display it correctly.
I don't see anything obviously wrong (nothing obvious to me...).
I recommend going back to the Blink Example. Move one of the wires to pin-13 and make sure the external LED blinks along with the built-in LED. If that doesn't work you have some kind of wiring/hardware problem.
If that works move the connection back to pin-9, 10, or 11,and modify the blink code to blink that pin instead of pin-13 (or in addition to pin-13). If that doesn't work, maybe your Arduino is bad.
If the blink example does work with a different pin, just keep adding one or two lines of code at a time until it blinks all of the LEDs as expected.
kinda statements in the code to see if it has even up.loaded and is running according to your plan. You can also,print the values of variables and so forth. Very handy.
Open the serial monitor window, make sure the baud rate is set to match the Serial.begin(9600) and see inside the code as you desire.
Thank you for all your responses!
I’ve tried on THREE different Arduino Uno devices now, and two breadboards…. Same (shit)!
It only blinks if I connect the LED to nr 13, which isn’t even in my code.
They all light up if I put them in the 3.3/5V.
That's an indication that the program installed by the manufacturer has in fact not been overwritten. You have yet to produce any evidence of a successful upload - it appears at the bottom of the progress window when you've successfully uploaded the code. There are two steps, compile and upload - is it possible you've only compiled, but not uploaded?