adc and usb

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

cross mob
feme_285141
Level 4
Level 4

 ¿Cómo puedo medir la diferencia de potencial en un período de tiempo utilizando adc y usb psoc 5?

0 Likes
6 Replies
feme_285141
Level 4
Level 4

 how do I measure potential difference over a period of time using adc and usb psoc 5?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

A PSoC5 has got an ADC with differential inputs (configurable). Care must be taken that no input exceeds the absolute maximum ratings, ie. not below PSoC GND and VddA

   

The USB inside the PSoC cannot act as a host, so it usually will be connected to a PC. Here the easiest interface is to use an USBUART component which emulates a serial com-port on the PC side.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

There are example projects for ADC and USB on the start page of Creator. See last

   

picture at bottom of attachment.

   

 

   

With regards to allowed pin voltage see attachment.

   

 

   

Regards, Dana.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

If you want a quick and dirty way of plotting the data on PC or showing on an

   

idicator (using UART) -

   

 

   

www.parallax.com/downloads/stampplot-pro-software

   

 

   

Regards, Dana.

0 Likes
feme_285141
Level 4
Level 4

 how do I send voltage measurement data in decimal as the example to observe the herd in hexadecimal ???

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

If you want to send decimal on Tx side (PSOC) convert the numeric to string, sprintf() best

   

approach, then transmit character string out thru USB, and on receive side (PC)

   

convert string back to numeric.

   

 

   

Rx side could be Python, Vis Studio, Java......

   

 

   

Formatting of string with sprintf() see attachment.

   

 

   

Regards, Dana.

0 Likes