Great vid, just graduated as a CS major and this info is related to a project I'm working on. I can't wait to see more.
@daleguenther58264 жыл бұрын
Thank you for a very informative video! I used an Apple Iphone4 several years ago with a vibration app. It would graph the X, Y, Z parameters, so I could actually see Vibration improvement the customer was feeling through the steering wheel in an automotive environment. Keep up the great work!
@codebits44612 жыл бұрын
Wow a TinyML video that's actually... Not boring 💯💎✨🤣🤣
@DavidBarbarine4 жыл бұрын
Great new little series... Thumbs-up!
@codebits44612 жыл бұрын
Wow just wow👏👏👏. Sorry I'm too impressed 💎😁
@G1TechDotOrg4 жыл бұрын
hi! how variants recommend use PI with influxdb and grafana or use cheep VM on cloud.
@fpgamachine3 жыл бұрын
Excellent info. Thanks
@ch940864 жыл бұрын
Thanks for the nice video series. Looking forward to the rest. Why not just post CSV directly instead of using a large json library and memory allocation, then json parser on the server? You could even post a binary array to make the client simple. Json seems overused these days in my opinion.
@ShawnHymel4 жыл бұрын
Glad you're liking it! Nothing wrong with CSV or some other type of delimiter (and as you pointed out, might be more efficient). I used JSON to demonstrate how you might go about it, as most commercial IoT servers seem to accept JSON-formatted requests (via REST or MQTT).
@ch940864 жыл бұрын
One can also use the no-library code to print json: snprintf(buf, sizeof(buf), "{x:%7.4f,y:%7.4f,z:%7.4f}", msa.x_g, msa.x_g, msa.x_g); if (i!=0) client.print(", "); client.print(buf); Or to output 3 arrays, store the x,y,z values in an array, then use a subroutine to emit each array. Note ArduinoJson uses 16 bytes of pre-allocated memory for each 4 bytes of content. For writing JSON, in many cases, using print functions can be fewer lines of code than using a library, and if something goes wrong or you need to do something different, you don't have to wade through 200 nearly comment free source code files that use complex C++ tricks. (Modern coding practice is to split up code into hundreds of files half a page long, avoid using comments, and use templates to objectify and modularize to replicate and slice the code up to lots of files. Contrast the 471 lines of C in jsmn (Jasmine) vs 7710 lines of C++ in ArduinoJson.)
@ShawnHymel4 жыл бұрын
@@ch94086 For a simple 3-element JSON like the one in the video, using a simple sprintf like the one you showed does save a lot of space, and agreed that ArduinoJson does seem fairly bloated.
@jhoanmartinezsilva26094 жыл бұрын
Awesome channel
@prathiknarayan10933 жыл бұрын
Hello Shawn, on your Arduino sketch I see that you have a host name as 192.168.1.68, is that the ip address of you laptop running the python server? I am not a IT person, so just wanted to check if my understanding is correct. When I run the script, I am assuming that I have to replace this ip address with the ip address of my laptop that runs the python server, please advice.