Arduino Projects Book 170 Pages Pdf 141

0 views
Skip to first unread message
Message has been deleted

Vida Hubbert

unread,
Jul 12, 2024, 1:35:18 AM7/12/24
to miebaphowi

I saved a lot of create.arduino.cc websites for references of my project, and now it's gone? I have to write proposal on the project, and now all of my coding references are gone, what should I do to access them?

All the projects published on the old Arduino Project Hub were also publised on hackster.io. So you should be able to find all the projects by searching on hackster.io. I believe these are the projects you linked:

arduino projects book 170 pages pdf 141


Download https://urllie.com/2yMOkE



Too many of those "create" pages were inaccurate, unchecked and copy/pasted (along with the inaccuracies). It was such a bandwidth hog on any search, I stopped referencing it. Maybe they are just cleaning house.

Thanks, but that doesn't really help..! Sorry if that sounds churlish, but I'd like to know how exactly to 'store' different 'pages' (i.e. a selection of lcd.setCursor and lcd.print commands) and then move between them.

I do this (or somthing similiar) in most of my projects, and while I dont know if its the best way, I do it by using a variable to keep an idea of what page Im on, and then displaying the specified screen.

Post your code. Someone can add to it. That's easiest way to understand. You already understand most of the code, cause you wrote them. I suggest the helpers to just use a serial.read instead of buttons class or digital read. The OP may need more time to understand if we used buttons to start with.

I am trying to do something similar. I am trying to set up my first LCD with an ethernet shield that is hooked up to my crock pot. What I am trying to do (initially) is to have the LCD read "Crock pot is on" when I toggle a PSII via a client that turns on the crock pot, and be blank or off when I toggle the pot off. I can get it to do the first part, but am struggling to get the second part to work. Any ideas? I am a bit of a noob

Hi,
I am most of the way through a project that does almost exactly what you want. In may case its a radio controlled car and go kart lap timer. The project has an LCD Display and buttons which are used to cycle the display through 'record','session summary','session detail' modes. Within each mode the button purposes can change so it could have become quite cumbersome to code. As it is I have come up with a very simple approach. If you can hold on until this evening I hope to be in a position to post my approach and enough sample code to get you going.

Hi,
hcanning, with reference to another post I have just made, I am assuming that you are in the 'would like to know more and willing to try' camp. If this is the case, please have a read through my latest blog post here and comment on whether it is helpful/interesting to you as a self described noob.

If you think it might be helpful but there are some areas that are not sufficiently clear again, let me know. Even if its a bit above your current level, its still good feedback to indicate whether you think with more generic background reading you could get there.

First of all it is great a pleasure for me to finally join in this illustrious community. I have found out about Platformio project on January of this year and ever since have been using it for many of my arduino projects. I use the Atom Text editor which I found to be extremely easy and intuitive to learn and use.

When I write codes in Arduino IDE, I can split the function bodies from the main ino files into discrete files following a sequential alphabetical naming scheme viz. A.main , B.pid, C.motor etc etc. When I hit the compile button, arduino compiles all these files and their associated header files without any error. Also the other ino files are capable of recognizing public variables, function calls written in libraries by other users installed into the Arduino IDE.

But in platformio, say I make the above files as such, main.cpp, pid.cpp, motor.cpp numerous errors are thrown including missing variable declarations from other libraries, for instance tft declaration of Adafruit GFX library is not recognized in other cpp files EXPECT in the main.cpp file.

Hence though I am not an expert in this subject matter, I strongly believe the platformio community/team should make ONE DEFINITIVE TUTORIAL to teach us less experienced programmers on how to create a multifile arduino project which will do the following

And a header-file (.h) with the function prototype and the struct definition. Arduino.h has to be included so you can use the variable type String. To clean up your project directory you can put the header-file in the include-folder while the source-file (.cpp) should be in the src-folder.
myhelperfunctions.h:

I totally agree. My programming discipline is questionable. I have a lot of multiple .ino projects and I am having a real struggle with getting a clean and manageable structure in Platformio.
At the moment, the Arduino IDE makes them far more readable.
For native C++ programmers, I guess the structure is second nature. For migrants from Arduino, it needs a better explanation - please?

I found that once I had a project working in platformIO that it was easy to navigate to, say a function, because they are all listed. However, I went back to the Arduino IDE for now because I can be get the job done much easier and quicker.
When I next try platformIO I plan to move the code from multiple tabs into one main tab, import that to platform.IO and get it running then maybe break it down into separate .ccp and .h files.

I found my way here as I'd like the same thing too. I'm always bumping into this, compiling for the wrong board because I'm working on a different project. I take no one's implemented a solutions? Of the suggestions, the #pragma idea seems best.

It's De-ja vu all over again.
I'll respond to the OP observation that there doesn't seem to be much interest in this feature. Yes, there is much interest in this feature, and it's been asked for frequently over the years. but the developers haven't shown any interest in implementing it, or to even reply why it can't be done.

arduino-cli has a "board attach" feature, which lets you associate a board and port to a sketch. The Arduino IDE will eventually be switched to using arduino-cli. So I think this feature is indeed being worked on by the Arduino developers. They're just doing it in a way that is consistent with the long term plans, rather than spending time implementing the feature into the Arduino IDE or arduino-builder, where it would just end up being thrown away as soon as the transition to arduino-cli happens.

My real issue is that there are some preferences that are specific to the project that I would like to set and archive with the project. (for example the processor to use or how much RAM is used for file storage). The idea of putting the preferences.txt file into the project directory allows archiving the preferences properly, but, as mentioned in a previous reply has the problem that compiling for a different platform will now have too many settings. Some preferences like "editor.external=true" do not belong to the project.

A better solution would be to put another preferences.txt file in the project directory that contains only the preferences specific to the project at hand. There already is system level preferences.txt file and a per user preferences.txt file. Adding one for the project taken from the same directory as the xxx.ino file would be an elegant solution to this problem.

This is definitely a great idea. Now I included all settings in each Sketch by hand. Kind of stupid. For a computer task.
Spent a lot of time figuring out what the optimal board settings were. Esp8266's,
Nano's with old and new bootloader, Pro Minis, Tasmota devices, etc. Multiple project switches a day.
Don't get it why this is not provided yet.

I'd like to for the board and port (at least the board) be saved. I work with different projects with different boards. As an example currently working with one project with an ESP32 and another with a MKR1500. If I compile one and then open the other board I get compile errors. It's not a big deal but sometimes when you've been away from using multiple projects it takes a little head scratching to realize the compiler errors are because the wrong board is being used. I see one solution is to move to Eclipse with the plugin. So there is a solution but there are things I like better with the IDE over Eclipse. Maybe there is a solution to this that I've not uncovered in my searching? It seems that something simple such as a file with named projectx.prj (or whatever) could be created in the same directory as projectx.ino to save the configuration.

It is easy enough to do manually if you want , you simply copy the preference file before you start your project.
That is what my little program does and for me this is a non issue since writing it.

I guess if I were part of the development team I would have added it to the core but we are where we are and given the uptake of a free solution (very little) I can see why the developers perhaps do not see the need to put in the effort.

Hi, Adrianotiger, your application looks good. Yet, from the application's readme on GitHub I don't know how to build/compile it with "Visual Studio Code" on Windows. Is compile an option, how would I call the application then?
Btw, I crashed 2 Sparkfun Pro Micros, because I uploaded the code with the wrong board chosen...... so I think your application would help.

Temboo
That website is very confusing. Are there examples somewhere ? or public pages of projects ? Is it possible to show the temperature in a graph for a few days ? I have really no idea what it is.

My web hoster supports almost everything. I tried to learn how to use a few of them, and I had a simple PHP running, but I really didn't understand the rest. Sorry, that's too hard for me now, and I don't have the time to seriously study it

Well, I don't relax at all I want my computer to be very secure. A popup-ad really scares me. Luckely it was not a virus but a webpage in my browser that caused it. However, even then a popup-ad should never occur.

b1e95dc632
Reply all
Reply to author
Forward
0 new messages