I am really new, not a programmer and struggling.
I want to use someone else’s code to load into an uno.
Could someone please point in the direction of a tutorial that can show me.
I tried what I thought, but it said it couldn’t find library?
Thanks in advance
If there is a library, there is some information about using, installing (and creating) libraries [u]here[/u].
Of course, the quality of libraries and the quality of the documentation varies... And sometimes, different libraries can conflict with each other, or they can even conflict with some of the Arduino standard C++ library functions.
If you post the code you're trying to use in here and you also post the error(s) you get it is going to be a lot easier to help. Trying to debug something you can't see is rarely useful.
Steve
Thanks guys, it’s note the code that’s an issue, it’s how I load it to the uno.
I cut and pasted into the IDE, but what do I do then?
I tried just to load but I get that’s not the way?
You can cut and paste into the IDE, but you must have any libraries mentioned in #include installed .
For begineers I don’t like trying to use others code, better to start simple and write your own , or adapt the examples, use your own style. If you want you can then read and understand what others have done and incorporate ( not copy!) it into your code . That way you will be more successful , learn and enjoy . Just my opinion ..
Thanks Hammy, but I don’t really want to programme just use the hardware.
If I cut and paste the code into IDE, what do I do then? Should I have saved into a library.
You see what I mean, I really don’t know the basics! Where can I learn them ?
I'll try again. Without seeing the code how on earth can we know what you need to have set up in order for it to work properly?
When you try to load it the IDE will produce a lot of errors (in the bottom part of the screen). These are telling you what is wrong but if you don't understand them you need to show the errors to someone who can interpret them for you. There are people round here who are really good at such interpretation but most of us are really rubbish at mind reading.
Steve
At the top of the forum is a banner with words HOME STORE SOFTWARE .... click on RESOURCES then in the dropdown menu click on TUTORIALS which gets you to another page of links. The BUILT - IN EXAMPLES are already loaded into your IDE and the Arduino site has a page for each one.
Explore the FOUNDATIONS AND MORE page links to get some literacy, the terms will start making sense.
Bookmark pages and keep a web browser with the ones you refer to whenever you use the IDE. There is a book of material on the Arduino main site. If you need more there are other web pages and books for sale that have lesson plans.
stwdv:
Thanks Hammy, but I don’t really want to programme just use the hardware.
If I cut and paste the code into IDE, what do I do then? Should I have saved into a library.
You see what I mean, I really don’t know the basics! Where can I learn them ?
Arduino is not really a platform for 'just using the hardware'. The advantage of Arduino over a personal computer or tablet, or even a phone, is that it can be programmed and different hardware attached to it. But every step requires knowledge of the entire system. Getting better at using Arduino depends on how much of the system you understand.
Libraries are files which contain code. There are hundreds of them, maybe thousands. The reason people need to see your code is because just loading a library won't really help. It's all very specific.
The way to learn the basics is to play with the examples in the IDE.
The Simon monk “ getting started “ books are a great introduction and what I used when I started.
There are a lot of complete projects out that can be replicated. Some are not so good and some are nightmares (probably up on Instructables) so take care on what you try.
stwdv:
Thanks guys, it’s note the code that’s an issue, it’s how I load it to the uno.
I cut and pasted into the IDE, but what do I do then?
Make sure the correct board & COM port are selected. Then click the Upload button (the arrow). The code will be compiled, then uploaded to the Arduino board, and after a few seconds you should see the message "upload completed".
If that doesn't work - there's probably an issue with the software. Or a missing library. Or something else. Which we don't know as you don't give any information.
How about the Getting Started page? Yes, read, look, find.
Thanks chaps, great help, finally worked it out, hadn't loaded the device library, and hadn't converted the sketch.
But got there in the end, thanks for the helpful guidance.