Graph

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
BUTA_1301626
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

PSoC SoftwarePSoC 5LP MCU Community would like to draw a graph for the dac (digital analog converter) value corresponding to each adc (analog digital converter) value that I obtained in my project. ADC (I variable), DAC (J variable) I wrote in the program. I want to plot the graph for the corresponding "j" value for each "I". For chart plotting, I can use nextion or tft display shield board cy8ckit-028-use tft. Can you help with this?

graph.jpg

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi

graph_pin_list.JPG

In the previous post, I forgot to initialize UG.

So I touched up the project a little bit.

IMG_3496.JPG

moto

View solution in original post

5 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Please refer to the section 8.1.11 on Drawing Graphs in the emWin documentation. You can find the document at this path: %INSTALL_DIR%/emWinGraphics_v5_46/Documentation/PSoC4_5/UM03001_emWin5.pdf

Use the function GUI_DrawGraph() which takes the following parameters:

0.PNG

Regards,

Dheeraj

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I ported TFT driver from CE2222221_Voice_Recoder sample of PSoC 6.

And modified your project to go with CY8CKIT-028-TFT.

tft_test.jpg

At least putting pixel seems to be working.

There seems to be much more fancy APIs are available in the graphics.c/h, ugui.c/h

so you are on you own to decorate the display format as you like.

moto

0 Likes

Hi user_13463998 ;

I tried to run the psoc project you sent.but there was no change in the graphical display. I wanted to make sure I was doing the connections right. Can you write which  PSOC 5LPpin to connect to which TFT028 pin?

PİN.JPG

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi

graph_pin_list.JPG

In the previous post, I forgot to initialize UG.

So I touched up the project a little bit.

IMG_3496.JPG

moto

Hi;

It worked. thank you so much.

0 Likes