Latest one is in github master. Those code for GPS will be released in 0.3.11 version.
Iām getting an error on this compiling for Arduino Mega (GpsParam not declared).
Do we need to include some widget function like for RTC?
@Lichtsignaal you obviously need the GPS Stream widget.
I havenāt used the GpsParam but you will need the master branch of Blynk on your Mega.
I updated to the latest library, but what does the widget have to do with anything on the Mega? Itās not aware of this, itās not compiling, so I was wondering if it worked like the RTC widget (which you have to include in your code).
-edit-
Guess Iāll wait for the 0.3.11 release ā¦ I must say this is not really user friendly guys, releasing a non-working widget
Thatās mean you are not using latest library (from github master).
Widget is working. And in recent added doc there are 2 ways of working with it. If one doesnāt work you can try another one.
Evilā¦ I just missed that library update, lol. It compiles now. Iāll check out how it works tonight.
now people will be able to move there Robots without even touch the phone screen , just move the phone and accelerometer with Blynk will do that for you.
but i think that will need a lot of code twerks and trail and error.
I was thinking of making a gyro-stabilized camera platform of some sort. Or control a camera platform with your phone.
Iām gonna hook some sh*t up tonight, lol
i hope we can see something similar , but with many jumper wires and geek looking device
I would call it āBlynker Restless Syndromeā
(Just kidding, LOL)
Give Blynk team a bit of time to update all docs, they are doing a lot of improvements in a really short time.
Kind regards!
That is a bit my issue. Maybe its better to fix up all missing and/or incomplete documentation before making more headway with new stuff. It makes it more accessible for new users too, which is really important. Iāve seen it too many times on this forum, messages and questions which could have been avoided with some more info. Esp being the primary example and how to make a decent blynk sketch. E.g. the timer and short loop.
Iām trying the GPS stream now, like so:
BLYNK_WRITE(V32) {
GpsParam gps(param);
// Print 6 decimal places for Lat, Lon
terminal.print("Lat: ");
terminal.println(gps.getLat(), 7);
terminal.print("Lon: ");
terminal.println(gps.getLon(), 7);
// Print 2 decimal places for Alt, Speed
terminal.print("Altitute: ");
terminal.println(gps.getAltitude(), 2);
terminal.print("Speed: ");
terminal.println(gps.getSpeed(), 2);
terminal.println();
terminal.flush();
}
But all I get is āLat: 1.000000ā when I press V32 button. Any insights?
@Lichtsignaal is V32 a button or the pin assigned to the GPS Stream?
If it is a button I think you need to move the code to the GPS Stream function and sync when you press the button.
Yeah, was figuring that out right as we type. Itās tied to the GPS widget now on V10. But I want to display the coords in my terminal so I added a button to do the terminal display on V32, but apparently the GpsParam is not global so it wonāt compile because of the missing declaration.
Yeah, it did the trick, it took a bit before GPS lock kicked in. Itās displaying my coords now, nice!
One more question for @vshymanskyy how often does the GPS kick in to get the coordinates on what energy levels? I was wondering how accurate the readings will actually be and if I have to add some averages to get better accuracy using lower power.
Video please!!!
i like the Lego
hi @Dmitriy
great updates as usual , i have a small question i have tested the Accelerometer and the output is showing as below , is the XYZ values are tab separated or what?
as in my browser i can see it like that ["-4.247314ļæ½-0.6991069ļæ½9.240421"]
and in node-red the output is like that ["-4.247314-0.69910699.240421"]
and which format shall i use it is it json as usual , as i didnāt tested it in any hardware because i never had the change to get servos and actuator to play with it , but now it is planned
There we go, well, the beginning is made, lol ā¦