Go to advanced search

by ElEscalador
Wed Sep 05, 2018 3:08 pm
Forum: Beginners
Topic: Completely new to Raspberry Pi. Need to build logger for work.
Replies: 21
Views: 581

Re: Completely new to Raspberry Pi. Need to build logger for work.

I made a very similar logger https://lloydbrombach.wordpress.com/2018/04/22/highlight-and-trial-run-video/ . I have learned a ton and been meaning to rewrite my code (C++) so it's cleaner and more responsive. There has to be better software out there but I like to roll my own for learning reasons. C...
by ElEscalador
Wed Sep 05, 2018 2:53 pm
Forum: Automation, sensing and robotics
Topic: Things I learned interfacing the XV11 Neato LIDAR with a RaspberryPi
Replies: 1
Views: 136

Re: Things I learned interfacing the XV11 Neato LIDAR with a RaspberryPi

Had to get a compass and accelerometer working so I had directional data available to start making use of all that LIDAR data for map building. Short video here (~90 sec): https://youtu.be/sifv6bqEFfM
by ElEscalador
Fri Aug 24, 2018 2:26 pm
Forum: Automation, sensing and robotics
Topic: Things I learned interfacing the XV11 Neato LIDAR with a RaspberryPi
Replies: 1
Views: 136

Things I learned interfacing the XV11 Neato LIDAR with a RaspberryPi

Man, I really can't thank everyone at this forum enough - I swear my robot project would still be a paperweight without you guys. Most recently I got a LIDAR unit so my robot can start learning to make its own maps... between this forum, the PIGPIO library, and plenty of Google, I've got it up and r...
by ElEscalador
Thu Aug 23, 2018 11:54 am
Forum: C/C++
Topic: Unknown troubles with serial port (UART)
Replies: 4
Views: 262

Re: Unknown troubles with serial port (UART)

I literally just fought with this - I find your symptoms usually mean either I have the wrong /dev path or something else is reading from my uart before my program can (Don't forget to disable the serial console / remove it from cmdline.txt (I think in /boot/cmdline.txt). Also here is a cut and past...
by ElEscalador
Tue Aug 21, 2018 12:47 am
Forum: Python
Topic: Help a brother understand this Python code
Replies: 2
Views: 139

Re: Help a brother understand this Python code

Ahh...I've actually never used them. Er...maybe I have but I copied them without understanding them. But got it all now, thank you for the education.
by ElEscalador
Mon Aug 20, 2018 10:07 pm
Forum: Python
Topic: Help a brother understand this Python code
Replies: 2
Views: 139

Help a brother understand this Python code

I think I get a lot of it, but what exactly does the >> and << do? And if I understand correctly, data_list[] will end up with 5 members, so the "for d in data_list:" part means the next line will execute 5 times? I have very limited exposure to python and am trying to convert this to something usab...
by ElEscalador
Mon Aug 20, 2018 8:44 pm
Forum: C/C++
Topic: Why different cout<< data type for serial UART vs pigpio bitbang?
Replies: 2
Views: 163

Re: Why different cout<< data type for serial UART vs pigpio bitbang?

Ahhh....my mistake not catching those details of the way the data gets handled...both functions are ints and in my haste to get to the fun part (of actually drawing maps from the data) I didn't think out the details, assuming for a long time I had a some kind of communication problem. The code that ...
by ElEscalador
Mon Aug 20, 2018 3:16 pm
Forum: C/C++
Topic: Why different cout<< data type for serial UART vs pigpio bitbang?
Replies: 2
Views: 163

Why different cout<< data type for serial UART vs pigpio bitbang?

I spent most of yesterday trying to figure out why my lidar data was just fine reading from the official uart pins, but came out mostly looking like trash from a gpio bitbang read. I knew SOME of the data had to be correct because of my if(condition) statement that wouldn't print anything to screen ...
by ElEscalador
Fri Aug 17, 2018 11:17 am
Forum: Beginners
Topic: Shutdown command after Button press
Replies: 6
Views: 210

Re: Shutdown command after Button press

There is no difference in the code needed, it's just that the two examples are using different libraries to do the same thing (I don't know python too well, so I cannot speak for the code actually working). You could use different libraries or different languages... but if any work on a pi3 they wou...
by ElEscalador
Fri Aug 17, 2018 1:21 am
Forum: General discussion
Topic: How Long Does Data Hang Out In The Full GPIO UART Buffer?
Replies: 2
Views: 137

Re: How Long Does Data Hang Out In The Full GPIO UART Buffer?

Ahhh, the thread might be a good way to go. I was just getting those figured out for another part of this project.
by ElEscalador
Thu Aug 16, 2018 1:39 am
Forum: C/C++
Topic: Keep a Function Updating Variables While Rest of Program Move Along?
Replies: 2
Views: 168

Re: Keep a Function Updating Variables While Rest of Program Move Along?

Awesome, thanks once again! When I get this robot army up and running, I'll make sure they know you're a friendly!
by ElEscalador
Wed Aug 15, 2018 10:56 pm
Forum: General discussion
Topic: How Long Does Data Hang Out In The Full GPIO UART Buffer?
Replies: 2
Views: 137

How Long Does Data Hang Out In The Full GPIO UART Buffer?

How long will data hang out in the UART buffer if I don't read it right away? Forever? (configured for the full uart - not that mini-uart crap). I have two Pi3s that need to send queries and commands back and forth - I was going to use gpio pins to signal eachother when they need to send a message a...
by ElEscalador
Wed Aug 15, 2018 9:29 pm
Forum: C/C++
Topic: Keep a Function Updating Variables While Rest of Program Move Along?
Replies: 2
Views: 168

Keep a Function Updating Variables While Rest of Program Move Along?

I'm re-writing all of my robot code to start actually using classes and because the current version is a mess of noob mistake and patches. I would like it to be full of slightly more advanced mistakes... So ideally, my sensor class constructor could keep updating bunches of variables from various so...
by ElEscalador
Mon Aug 13, 2018 1:03 pm
Forum: Automation, sensing and robotics
Topic: Facebook group for Robot Nerds?
Replies: 0
Views: 61

Facebook group for Robot Nerds?

If allowable, I'd like to invite those genuinely interested to a Facebook group specifically for autonomous robotics enthusiasts. .

https://www.facebook.com/groups/273792653417570/
by ElEscalador
Mon Aug 06, 2018 12:05 pm
Forum: C/C++
Topic: How the Heck does my RPI3 Complete a Program 1200% Faster than my HP Probook??
Replies: 5
Views: 663

Re: How the Heck does my RPI3 Complete a Program 1200% Faster than my HP Probook??

I had tried compiling as release and running the exe to no improvement, but whatever "_SECURE_SCL=0" does fixed it right up. I haven't compared run times again to the Pi, but now when I'm testing code on the windows /VS machine it's executing in a few seconds compared to 2-3 minutes. Thanks!
by ElEscalador
Sat Aug 04, 2018 9:01 pm
Forum: C/C++
Topic: How the Heck does my RPI3 Complete a Program 1200% Faster than my HP Probook??
Replies: 5
Views: 663

How the Heck does my RPI3 Complete a Program 1200% Faster than my HP Probook??

I wrote my first navigation/collision avoidance program in c++...I wrote it on my windows laptop (1.6ghz, 8gb ram, 64 bit, windows 10) in visual studio - intended to end up in my robot. Since it was my own code (based on A Star algorithm) I knew it wouldn't be the most efficient, but it was taking 1...
by ElEscalador
Fri Jul 27, 2018 4:01 pm
Forum: Off topic discussion
Topic: Nerdy/Programming/Automation/etc audio books/podcasts?
Replies: 3
Views: 849

Nerdy/Programming/Automation/etc audio books/podcasts?

So my commute has more than doubled and I've been flying a fair bit... Wondering what if any audiobooks or podcasts might be of interest to a computer science major/programming&robotics enthusiast. It'd be great if I could learn programming stuff (c++ and python are current focuses) while driving, b...
by ElEscalador
Wed Jul 25, 2018 11:39 am
Forum: Beginners
Topic: Pi gets warm and VNC/SSH stops working
Replies: 12
Views: 296

Re: Pi gets warm and VNC/SSH stops working

Not at all scientific, nor am I as studied as any of these gents but I had the same problem with a pi3 on a robot - sucker would work fine until the temperature rose. I could even make it do things via ssh forever, but running vnc the temp would start to rise. I took the cover off the case and never...
by ElEscalador
Sun Jul 15, 2018 9:15 pm
Forum: C/C++
Topic: My Buffer Runneth Over - libmosquitto user IQ error somewhere...
Replies: 4
Views: 306

Re: My Buffer Runneth Over - libmosquitto user IQ error somewhere...

MUCHO appreciated, my good man. Simply removing the recurring call for mqtt_setup() and extra calls to cleanup() and destroy() seems to have solved the overflow problem. I think I added those in an attempt to be able to change the topic published to. I want to try the wrapper class out... Will be wo...
by ElEscalador
Fri Jul 13, 2018 9:51 pm
Forum: C/C++
Topic: My Buffer Runneth Over - libmosquitto user IQ error somewhere...
Replies: 4
Views: 306

Re: My Buffer Runneth Over - libmosquitto user IQ error somewhere...

My bad, I must have broken something trying to cut out the gpio stuff. Here is the complete program that compiles on command line with g++ and -lwiringPi -lmosquitto /* This program used to check garage door to monitor door status and notify us if open */ #include <iostream> #include <cstdio> #inclu...
by ElEscalador
Fri Jul 13, 2018 8:15 pm
Forum: C/C++
Topic: My Buffer Runneth Over - libmosquitto user IQ error somewhere...
Replies: 4
Views: 306

My Buffer Runneth Over - libmosquitto user IQ error somewhere...

I am trying to learn MQTT... have a working broker and command line use, but I want to start integrating it into my 1/2 dozen pis and their c++ programs. Have my first publisher working - kinda. The original program simply monitors the garage door end switch and updates the console with status - tha...
by ElEscalador
Tue Jul 10, 2018 3:50 pm
Forum: Beginners
Topic: How to access live video from the Pi camera remotely
Replies: 3
Views: 163

Re: How to access live video from the Pi camera remotely

Well...the option I'm talking about enabling is enabled on the rpi. I think that video overlay whatever stuff should be present on whatever vnc viewer you use as long as you're using realvnc on the rpi side, but you'll have to try it. Actually - I'm pretty sure you can download realvnc for windows t...
by ElEscalador
Tue Jul 10, 2018 3:40 pm
Forum: Troubleshooting
Topic: rpi3 cannot get connection with Samsung Galaxy S9 wifi tethering.
Replies: 2
Views: 199

Re: rpi3 cannot get connection with Samsung Galaxy S9 wifi tethering.

I have pis zero, zero w, 2, and 3 that all connect to my galaxy S8 no problem (verizon wireless and before that - sprint pcs with a galaxy s7). I usually use raspbian desktop version and connect with the widget just once, but I have just entered the data in wpa supplicant file.... if you are using a...
by ElEscalador
Tue Jul 10, 2018 11:46 am
Forum: Beginners
Topic: How to access live video from the Pi camera remotely
Replies: 3
Views: 163

Re: How to access live video from the Pi camera remotely

IF you're using realvnc - on the host computer open realvnc, then options, then expert. Click to "enable experiment direct capture mode."
by ElEscalador
Sat Jun 30, 2018 2:33 am
Forum: General discussion
Topic: New Raspbian release 2018-06-27
Replies: 30
Views: 1876

Re: New release 2018-06-27

WIth the last release, code::blocks would just close every random interval between two and 20 minutes. I really don't know if it was raspbian or code::blocks, but I was not alone. Any idea if this is better in this version?

Go to advanced search