I2C protocol Programming

ericgibbs

Joined Jan 29, 2010
21,448
hi T,
I guess you know how to use the Serial Monitor which is part of the Arduino IDE.?
If not ask.
Use Serial Print commands in your programs while testing, you can then check if the code is working as you expect.
Also give your Sketch's a name which you will be able to recognise later on, and add the Title/Date and what the does etc ... in the Sketch header.
E
 

ericgibbs

Joined Jan 29, 2010
21,448
hi,
What value of resistor.?
What colour LED
and is the LED the correct way around.??

Do this test:
Place the Cathode of the LED in a 0V/GND pin on the UNO
Place the resistor in the +5V pin on the UNO.
Touch the resistors free end to the Anode of the LED, it should light.

If not reverse the LED and try again..
what do you see.?

E

Update:

Post the Master Sketch with the LED code.
 
Last edited:

ericgibbs

Joined Jan 29, 2010
21,448
hi,
Check the value of the resistor with a test meter, it may not be what you think ie:1K,
try a 470R or 220R resistor.
The LED maybe an IR infra red etc.

Did you do that test in post #24.???

E

Update:
Post the Master Sketch with the LED code.
 
Last edited:

Thread Starter

Tinashe228

Joined May 2, 2021
17
Hello E

Everything was running fine the only thing that was a problem was the LED not lighting and I had to submit it by 12 i spent far too much time on the other assignment than this one, thanks a lot for your helping hand.
 

BobaMosfet

Joined Jul 1, 2009
2,211
thanks for the response, i dnt have a clue when it comes to coding im totally lost..
@Tinashe228 - This is a great opportunity for you to learn programming!!!! :)

I recommend finding a REFERENCE for programming Arduino and learning what each of the commands, syntax, and so forth is- That's how we all (for the most part) learned any programming language. Have a problem, pick a language, learn it, solve the problem. Get better over time.

For C, here's a reference:

Title: Standard C [Quick Ref]
Author(s): P.J.Plauger, Jim Brodie
ISBN: 1-55615-158-6
 

Thread Starter

Tinashe228

Joined May 2, 2021
17
@Tinashe228 - This is a great opportunity for you to learn programming!!!! :)

I recommend finding a REFERENCE for programming Arduino and learning what each of the commands, syntax, and so forth is- That's how we all (for the most part) learned any programming language. Have a problem, pick a language, learn it, solve the problem. Get better over time.

For C, here's a reference:

Title: Standard C [Quick Ref]
Author(s): P.J.Plauger, Jim Brodie
ISBN: 1-55615-158-6
Thank You
 

BobaMosfet

Joined Jul 1, 2009
2,211
Actually- there are more quality resources for learning Arduino programming on youtube, than you can shake a stick at. Just look for:

arduino programming for beginners
 
Top