КОМЕНТАРІ
@kadirtunc4664
@kadirtunc4664 Місяць тому
Can you make a video for beaglebone black?
@John-ro2yk
@John-ro2yk 3 місяці тому
this was very informative and helpful. I second disappoint in that you've had made a handful of videos. One on structs alone would be worth watching.
@jugnu361
@jugnu361 10 місяців тому
Thanks
@jlr3636
@jlr3636 10 місяців тому
Thanks, this is a major jump in my understanding of state machines. My project is to take an older Keurig coffee maker, disassemble and separate the parts, then re-assemble into a kind of funky steampunk style coffee maker, using an Arduino to handle the code. Using your code as a starting point, I can add in some temperature, pressure, water level sensors, relays, plus some pumps, and be well on my way of blowing up my house. 😂 thanks
@thinkingthing4851
@thinkingthing4851 3 місяці тому
🤣
@CrispyCircuits
@CrispyCircuits Рік тому
Thank for making this video. My history with both programming and electronics is a bit odd. I learned to program BASIC and some assembly on a Timex-Sinclair 1000. I studied electronics when I was very young, trying to get my ham radio license. I couldn't master the Morse code, so that didn't happen. I also had a surplus military receiver and transmitter that was vacuum tube based. Then, lots of time passed. My next programming returned when I started using OpenBSD. Being in that environment is a bit frustrating, but even things barely understood shows the best way for many things. I am also doing electronics again, now. Little pieces from all over the place in time are starting to form into a whole. Thanks again.
@berndwacke7083
@berndwacke7083 Рік тому
Hi, unfortunately this guide does not work for me. I suppose, the main reason is, as of today Qt 5.12 isn't any longer available. The oldest repo I could get was 5.15.9. But when building that, it fails very soon in the process - specifically: ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" The configure process (long command line in the tutorial) seems to succeed, however. Maybe someone knows of a mirror or archive? Would be great!
@heavybaremetal8682
@heavybaremetal8682 Рік тому
Hi, thanks for the letting me know. I'll look at a fix. In the mean time, could you try these links instead? You can get an offline installer and source code for Qt 5.12.12 here: www.qt.io/offline-installers, and here: download.qt.io/archive/qt/5.12/5.12.12/. Please note! I had to use 5.12.3 when I tried, I couldn't get 5.12.12, or higher than 5.12.3, to work, some more info: heavybaremetal.com/index.php/blog/6-how-to-cross-compile-qt-5-for-raspberry-pi-3#h52skelb92cp1u42gydadmhkmpwp0u4 5.12.3 offline installer and source available here: download.qt.io/archive/qt/5.12/5.12.3/ Anywhere in commands on the website, you will have to replace download.qt.io/official/ with download.qt.io/archive
@berndwacke7083
@berndwacke7083 Рік тому
@@heavybaremetal8682 Thanks for your quick answer!😀 In short, it works now! I will post my long answer (and a few other points) as a fresh comment; in case someone else is interested.
@pratyushheblikar2162
@pratyushheblikar2162 11 місяців тому
@@berndwacke7083 Could you post your long answer? I am stuck at "qt requires c++11 support" too
@bob-ny6kn
@bob-ny6kn Рік тому
Arduino 2.0 has changed many of these issues.
@nutmeggaming11261
@nutmeggaming11261 4 місяці тому
The Arduino plugin for VSCode solves 60-70% of these problems, and provides customizability. The limits of the libraries and language are the real limits.
@TheSportalex
@TheSportalex Рік тому
Hi i dont know if there's some news about this video but i'm stuck at the long line (./configure........) i have an error that says /configure: 149: ./configure: cmake: not found ./configure: 168: ./configure: cmake: not found!! Can someone help me ? thx
@heavybaremetal8682
@heavybaremetal8682 Рік тому
Hi, did you follow all the commands on the linked website? It seems cmake is not installed. What OS are you using for running Qt?
@jagadeeshjgn50
@jagadeeshjgn50 Рік тому
Thank you. I was lucky to find your video. I was tried this video as last try. And finally I got success after following your tutorial. Thank you so much................. :)
@beachdancer
@beachdancer Рік тому
Fascinating. That 3rd method using a struct table was new to me. The advantage of pointer over the first switch case seemed partly that you had moved the code into separate functions. Couldn't that also have been done in the first example? The problem with my hobby type projects is that I don't know what the states are going to be until some way into the project.
@heavybaremetal8682
@heavybaremetal8682 Рік тому
Thanks for the comment. Yes the switch method could just call functions. The table of function pointers method is just an alternative to the switch case, but it can be easier to modify and keep track of. Yes dealing with changes is always the hardest part, but making code easy to modify from the start is best. Happy coding!
@maurycynazdrowicz6581
@maurycynazdrowicz6581 Рік тому
Hello HVB, have You or anyone here tried already any newer Qt 5.12.x?
@SMOUSE99
@SMOUSE99 Рік тому
very neat! As others' comments, it's a working demo!!, thanks.
@erhantoprak2352
@erhantoprak2352 2 роки тому
Hi. Thanks for this video but I have a problem. I m using opengl in my project. But I cant compile for raspi 3. I installed libraries(glew.h , glu.h....) in ubuntu but this is my issiue : "GL/glew.h file cannot find" . I installed (sudo apt-get install freeglut3 libglew-dev libglu .....) libraries. But compiler can not find this library path. How can I install opengl libraries in my cross compiler.
@roncole5789
@roncole5789 2 роки тому
I created a touchscreen with i2c interface using switch case.
@roncole5789
@roncole5789 2 роки тому
I got stoplights on Amazon. I can't wait to sink my teeth into this code.
@georgeboydratcliff1036
@georgeboydratcliff1036 2 роки тому
I’m a professional developer (C# web and API development mostly) and love IoT. It’s great to see good quality code tutorials! Thank you! Coming from a ‘fuller’ environment (mostly Visual Studio / VS Code) I *really* miss debugging on Arduinos and ESP8266/32. So any of your skills on that front would be great! Keep up the good work!
@phucduong6896
@phucduong6896 2 роки тому
i run sudo apt build-dep qt4-x11 -y but get it error E: Unable to find a source package for qt4-x11 Can you help me to fix this?
@cedric6100
@cedric6100 2 роки тому
Are u using the Debian Bullseye OS on your Raspberry Pi ? if yes, then u should probably get the Buster instead so that it works !
@berndwacke7083
@berndwacke7083 Рік тому
@@cedric6100 Hi, I just had the same issue on Raspbian/Debian Bullseye. Seems that Qt 4 is now obsolete, and thus no longer available as a package. I just left it out, since I'm not using Qt 4 anyway. No issues encountered.
@K.Huynh.
@K.Huynh. 2 роки тому
07/03/2022 - It still works <3 Thank you so much !
@heavybaremetal8682
@heavybaremetal8682 2 роки тому
Thanks very much fro confirming it still works! I hope it was helpful!
@johneagle4384
@johneagle4384 2 роки тому
I've been exposed to state machines recently, and i've found the subject quite interesting. I have a questions, I am building a little system using Arduino consisting of a GPS, a magnetometer and a lightning sensor.These sensors will be transported by a drone and I will collect the data via a radio link. Does this system benefit from a state machine? Thank you for the video. I love your traffic light!
@heavybaremetal8682
@heavybaremetal8682 2 роки тому
Hi John, thank you for your comment, I'm sorry for the delay in replying. For your system a state machine may not be needed, but I'm not sure. It sounds more like data gathering, so a more suitable design might be to gather the data on a clock tick (similar to how the traffic light system only does something when the next time is reached), then package the data up and send it over your radio link. If you continually collect data but only send it say once a second all in one go, then a state machine might be suitable, as there are clearly defined separate states: collect data, send data. But this could also be done just be filling a buffer, then sending once the buffer if full. I hope this helps!
@johneagle4384
@johneagle4384 2 роки тому
@@heavybaremetal8682 Yes, it is data gathering. And I guess I'll follow your advice (filling a buffer). Thank you for the reply!
@roncole5789
@roncole5789 2 роки тому
​@@heavybaremetal8682 but if you're trained to gather data at and use the data I think a switch case would be better because I did some things a while back and I would crash the CPU. on the Arduino.
@eswarreddy6280
@eswarreddy6280 2 роки тому
great one
@DJDavo013
@DJDavo013 2 роки тому
When i run: rsync -avz pi@$PI_IP:/lib sysroot not much happend?? pidev@pidev:~/raspi$ rsync -avz pi@$PI_IP:/lib sysroot receiving incremental file list sent 20 bytes received 50 bytes 46.67 bytes/sec total size is 7 speedup is 0.10 What went wrong?? with: rsync -avz pi@$PI_IP:/usr/include sysroot/usr rsync -avz pi@$PI_IP:/usr/lib sysroot/usr rsync -avz pi@$PI_IP:/opt/vc sysroot/opt It transfered a shit load of data Btw i'm running on windows 10
@heavybaremetal8682
@heavybaremetal8682 2 роки тому
Some of the syncs don't send a lot of data. Did you get an error? Carry on anyway it should work. Thanks for the comment!
@DJDavo013
@DJDavo013 2 роки тому
@@heavybaremetal8682Thnx for yur reply man! I Started all over again and have the same problem again... sigh :x Hmmm okay, but at 16:05 when you enter "rsync -avz pi@$PI_IP:/lib sysroot" a-lot of data is being transfered from the pi to the vm, like lib/arm-linuxgnueabihf folder etc. With that command i only get this: utracer@utracer:~/raspi$ rsync -avz pi@$PI_IP:/lib sysroot receiving incremental file list lib -> usr/lib sent 27 bytes received 57 bytes 168.00 bytes/sec total size is 7 speedup is 0.08 something is going completly wrong and it driving me nuts.. I ignored it yesterday also but with making the install it went into errors & missing files.... SoI guess it's due this line "rsync -avz pi@$PI_IP:/lib sysroot"
@DJDavo013
@DJDavo013 2 роки тому
@@heavybaremetal8682 I guess you were right! i finally managed it to compile the program and run the analog clock on the pi! yeahhhh, gotta go to work, tonight i'll carry on with Building and debugging with Qt Creator
@heavybaremetal8682
@heavybaremetal8682 2 роки тому
@@DJDavo013 Congratulations! What did you do in the end? Was there something missing in the guide? Thank you very much for letting me know how it went!
@DJDavo013
@DJDavo013 2 роки тому
@@heavybaremetal8682 I can't exactly tell what went wrong... I had sum issues when i restarted the VM & Pi & tried to rsync after generating a new ssh it worked export PI_IP=<ip adress> ssh-keygen ssh-copy-id pi@$PI_IP rsync -avz pi@$PI_IP:/lib sysroot And this one also: Now we need to let the Pi know about these new libraries. Open an SSH into the Pi, with: ssh pi@<PI IP address> i did this in my VM ssh But i think you should let the manual as it is... I made it myself confusing lol Linux can be quite a pain sometimes, i'm just a rookie as it come to linux Thanks for make it happen! I'm not there yet lol still have to do the rest (Building and debugging) but i had to work and got home late... my goal is to install www.bmamps.com/uTracer/utmax_linux.zip and run it on the pi, the soft has been written with qt, and i'm very happy with your tutorial man!
@geckomage
@geckomage 2 роки тому
this video was amazing dude. You have no idea how many of these ive tried to follow that ended up in a bunch of nonsense errors and it not working. You are the only one that actually went through and explained what everything was for, what it does, and what we were doing with each command. Please make more videos.
@heavybaremetal8682
@heavybaremetal8682 2 роки тому
Thank you very much for your kind comment! I'm glad it helped! I was in the exact same situation which is why I made this video. What kind of videos would you like to see? I've been thinking of making a series on embedded TDD (Test Driver Development), writing unit tests FIRST, then the code to make the tests pass. That's how I write code in industry, very easy to add new functionality when you have a complete suite of tests to prove you haven't broken anything else!
@geckomage
@geckomage 2 роки тому
you sir, are a treasure. I am a mechanical/electrical R&D Engineer and all i have ever really messed with was simple PLC systems for industrial automation. I'm trying to learn programming and work my way towards more intelligent systems with a bit more modern HMI's If you ever require any assistance with electrical circuitry design, or any facet of manufacturing/fabrication. Please let me know and i would be glad to assist and return the favor. (i have a particular affinity for manual/cnc machining/programming. additive manufacturing , i can make most printers hold +- 0.003" on print dims, and casting; both resins and metal.)
@heavybaremetal8682
@heavybaremetal8682 2 роки тому
Thank you sir! Your milling video looks very interesting! Thank you for the kind offer, I'll remember it! Very impressive tolerances. I've got an original Makerbot Replicator, great for quick prototypes, but not the most reliable or accurate!
@dondoesroblox6444
@dondoesroblox6444 2 роки тому
20:08 "Sign your life away" This part killed me lmao
@laggggggggg3
@laggggggggg3 2 роки тому
i get to the point where it copies the analogclock project to the Raspi, but i cant run it through the ssh terminal. I get: *Could not initialize egl display. Aborted*
@heavybaremetal8682
@heavybaremetal8682 2 роки тому
Hi Jorge, thanks for your comment. See the comment above: "For a graphical program, you'll have to execute it on the Pi itself, otherwise you'll get no graphical output. Copy across, then run from the Pi You may have to be build the Qt svg module, and copy the libs over to the Pi, details near the end of the video/website guide. Let me know how you get on!" Once copied over, you should be able to run graphical programs from the Pi directly. Just find them and double click. There are ways to remotely execute a GUI program, but can be quite complicated. Look into X redirection over a network if that's what you want.
@laggggggggg3
@laggggggggg3 2 роки тому
@@heavybaremetal8682 I got it working by exporting some environmental variables from the pi to my vm. You can do the same on the QT creator and it runs on the pi from my vm. Also I did not set the mspek and it still works? IDK lol
@ugurcanusta7005
@ugurcanusta7005 2 роки тому
hi,thanks for video,when I tried to run qt quick application for my rpi3, i get these errors "Could not initialize egl display,Remote process crashed." Have you ever faced this problem?
@heavybaremetal8682
@heavybaremetal8682 2 роки тому
Hi, thanks for the question. How are you running/copying the program? What happened with the analogue clock example? heavybaremetal.com/index.php/blog/6-how-to-cross-compile-qt-5-for-raspberry-pi-3#h61skelb96xplx7j2frwiv9mbo5df7 For a graphical program, you'll have to execute it on the Pi itself, otherwise you'll get no graphical output. Copy across, then run from the Pi You may have to be build the Qt svg module, and copy the libs over to the Pi, details near the end of the video/website guide. Let me know how you get on!
@tingkwok3030
@tingkwok3030 3 роки тому
really glad I found this. There are so few videos out there that I've found where the code is explained thoroughly and better yet, compared to other ways of achieving the same goal. I was disappointed to find you hadn't made more videos like this!
@kempenaar32
@kempenaar32 3 роки тому
website "heavybaremetal.com/index.php/blog/6-how-to-cross-compile-qt-5-for-raspberry-pi-3" seems to be broken.
@jubbeske
@jubbeske 3 роки тому
Same here. Doesn't work. Heavebaremetal, can you fix? Going through steps is hard just using video. Thanks!!
@heavybaremetal8682
@heavybaremetal8682 3 роки тому
Hi Jef, website is fixed now, spam bots got past the comment captcha and overloaded it with 100,000+ comments! Sorry for the outage!
@kempenaar32
@kempenaar32 3 роки тому
@@heavybaremetal8682 works now, thx