Drawing Scope on Eve2-50G

FTDI/Bridgetek EVE2 & EVE3 SPI TFT Series by Matrix Orbital

Moderator: Mods

Post Reply
ChrisBack
LCD?
Posts: 5
Joined: Wed Jun 19, 2019 2:22 am

Drawing Scope on Eve2-50G

Post by ChrisBack » Tue Sep 03, 2019 8:38 pm

Dear sir,
i woudl like to draw a scope on the screen and display an incoming value continuously. Normally the old point or line should still be displayed after swapping the display list but it disappears. When i store the old value into an array and display all the values in a for loop before i swap the display it slows down the display.
My hardware:
-Arduino Uno
-EVE2-Shield
-EVE2-50G-BLM-TPC

thank you for any help
cheers,
Chris

Daniel Divino
Matrix Orbital
Matrix Orbital
Posts: 247
Joined: Thu Sep 24, 2015 9:38 am

Re: Drawing Scope on Eve2-50G

Post by Daniel Divino » Wed Sep 04, 2019 11:25 am

Hi Chris,

Are you looking to create somthing similar to an oscilloscope screen, or an ECG meter?

Cheers,
Daniel
Daniel Divino
Technical Support
Matrix Orbital

ChrisBack
LCD?
Posts: 5
Joined: Wed Jun 19, 2019 2:22 am

Re: Drawing Scope on Eve2-50G

Post by ChrisBack » Wed Sep 04, 2019 3:10 pm

Hi Daniel,
I would like to build something like an oscilloscope screen but just the value which will be drawn on the screen as a line.
My problem is that the old line disappears and when is store the value into an array and draw it with a for loop the display drawing speed goes down
after a couple of lines.

Thank you.
Chris

Daniel Divino
Matrix Orbital
Matrix Orbital
Posts: 247
Joined: Thu Sep 24, 2015 9:38 am

Re: Drawing Scope on Eve2-50G

Post by Daniel Divino » Thu Sep 05, 2019 11:13 am

Hi Chris,

Take a look at the Signals example that FTDI posted on their site. The Signals demo uses stored data to recreate sine, triangle, and ECG heartbeat waveforms on screen. You may be able to modify one of the waveform functions that they use for your own application. It isn't quite the same as taking in new data every second, but at the very least it should demonstrate how you can update the screen with new data without old data disappearing.

https://www.ftdichip.com/Support/Softwa ... #Example13

I have attached the Signals example, modified to work with our hardware (EVE2 and Scoodo shield) using the EVE2 library. This should help you get started. Note that you will need an SD card to run this project. Simply copy over the Cap_Cal.bin from the "Images for SD card folder" file to the root directory of your SD card, and you should be on your way.

The demo is currently configured to run on a Capacitive touch 5 inch EVE2.

Cheers,
Daniel
Attachments
Heart_Signals.zip
(27.56 KiB) Downloaded 11 times
Daniel Divino
Technical Support
Matrix Orbital

ChrisBack
LCD?
Posts: 5
Joined: Wed Jun 19, 2019 2:22 am

Re: Drawing Scope on Eve2-50G

Post by ChrisBack » Thu Sep 05, 2019 3:41 pm

Hey Daniel,
Thank a lot this will let me out.
I tried this example before but i could not bring it into function. Now i will look for the differences in our codes.

Thank you again for the superb support.

Cheers,
Chris

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest