Photodiode current sampling using USB

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.
Anonymous
Not applicable

Hi all,

   

I'm trying to build a system to characterize lasers, I'm collecting the light output using photodiode and connecting it to ADC, the output from the ADC is sent to a software called makerplot using USB connection. I just would like to make sure I'm doing it in the right way in terms of routing and sending the serial data on the right way. It seems that my code is not doing exactly the required as there's no data received in the software. I have my clock setting as required. Am I using the USB connection in the wrong way? I'm initiating the ADC to produce a byte value which should be sent through the USB,

   

You find my project attached

   

Thanks in advance.

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

There is quite a few sample projects using USB, see start page Creator,

   

"Find Example Project", see below.

   

 

   

    

   

         

       

http://www.cypress.com/?rID=34582     AN49943 - PSoC® 1 USB-to-UART Bridge

   

http://www.cypress.com/?rID=34330     AN50989 - PSoC® 1 - USB To SPI Bridge using PSoC 1

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

Some suggestions:

   

Your components are not up-to-date, you should consider updating Designer to latest version.

   

Within your infinit loop you call USBUART_Start() repeatedly, this should be called only once

   

You did not call USBUART_Init()

   

There is a simple example within the USBUART-datasheet, stick to that.

   

You are presumingly using MAC-OS, I do not know if the required driver on the PC-side (emulating a COM-file) is functional.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thanks danaaknight and Bob.

0 Likes