Raspberry Pi TNG Tricorder


MangyDog

Sr Member
Here's an update (that is now out of date) that shows it operating on internal power. Still needs tons of work. But there's more to come soon I hope! (This is my build)


Saw this a couple days ago, and really liked the work. I was thinking about your slow UI response time. There really shouldn't be any real noticeable lag going on, even the basic pi zero has what a 1ghz core? I suspect theres something off with your thread scheduling setup.

I do my stuff on embedded hardware, using freeRTOS and I set my schedules to run the lcd once every 40ms to give 25fps and my leds to run there next update at something else (cant remember what tbh :D )

that leaves me tons of time to setup other things like button detection and what not. That runs at 5ms per check I think...

It might also help you to use compiled code rather than python VM.

VMs have a really large overhead and on a small SOC it might be pushing its limits.

I dont know if theres any route to direct port python code to a compiled machine code... Thats something worse looking into.
 

directive0

New Member
Saw this a couple days ago, and really liked the work. I was thinking about your slow UI response time. There really shouldn't be any real noticeable lag going on, even the basic pi zero has what a 1ghz core? I suspect theres something off with your thread scheduling setup.

I do my stuff on embedded hardware, using freeRTOS and I set my schedules to run the lcd once every 40ms to give 25fps and my leds to run there next update at something else (cant remember what tbh :D )

that leaves me tons of time to setup other things like button detection and what not. That runs at 5ms per check I think...

It might also help you to use compiled code rather than python VM.

VMs have a really large overhead and on a small SOC it might be pushing its limits.

I dont know if theres any route to direct port python code to a compiled machine code... Thats something worse looking into.
Hey I just watched your vid on your V2 build! So awesome! Can't wait to see the next vid!

Thanks for the advice on moving to a compiled code. I am in awe of your beautiful and smooth animations and responsive UI. Sadly I'm not much of a developer and I'm kind of learning python as I go with this project. I've done some arduino and compiled code before but nothing of this scale. But I'm trying to do the best I can with python for now and Im thinking about slowly replacing parts of the software I've written into C or the like.

Can I ask about the display tech you're using right now? Its a graphics chip you use to drive your screens?
 

MangyDog

Sr Member
Yeah im using a FT810 graphics coprocessor to drive the display... As youre using PI the graphics chip in your Pi is vastly superior to what I have.

If you really wanted to you could do 3D graphics :D
 

Your message may be considered spam for the following reasons:

  1. Your new thread title is very short, and likely is unhelpful.
  2. Your reply is very short and likely does not add anything to the thread.
  3. Your reply is very long and likely does not add anything to the thread.
  4. It is very likely that it does not need any further discussion and thus bumping it serves no purpose.
  5. Your message is mostly quotes or spoilers.
  6. Your reply has occurred very quickly after a previous reply and likely does not add anything to the thread.
  7. This thread is locked.
Top