tcs3200

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.
diluc_3555836
Level 2
Level 2
First like received

generate this code for a tcs3200 but I do not throw any results on the display, I only get characters without meaning

attached to a program that you perform

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Diego Luna-san,

Please refer to my response at the thread below.

Color Light-To-Frequency Converter TCS3200 (CY8CKIT-050) Sample Program

Best Regards,

23-Jan-2019

Motoo Tanaka

View solution in original post

0 Likes
6 Replies
lock attach
Attachments are accessible only for community members.
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

I have cleaned the code you provided and made some modifications. You only need to write the function get_freq() and then it will build succesfully and most likely will also work with the sensor. I do not have the sensor and can't test it.

Let me know how it goes.

Regards,

Dheeraj

0 Likes

hello I write the function get freq but the program is still unable to compile, at first I was given warning by the LCD, but I already solve that part, but the function is still generating error.

0 Likes

In the project you provided, there is no function definition for get_freq(), only the function prototype is present. Can you tell me what errors you are seeing?

Regards,

Dheeraj

0 Likes
lock attach
Attachments are accessible only for community members.

hello I use this code since the previous one did not give me solution, without positive results, but I have the problem that does not show me a result in the Term Tera, it throws me some symbols, probe changing the frequency of work guiding me from a pdf, but without any result, I attach the program and the reading that throws me.

Sin título.jpg

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Diego Luna-san,

Please refer to my response at the thread below.

Color Light-To-Frequency Converter TCS3200 (CY8CKIT-050) Sample Program

Best Regards,

23-Jan-2019

Motoo Tanaka

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

Dear Diego Luna-san,

I touched up the code Dheeraj-san touched up.

There were "some" points to be modified

(1) freq should be 16bit instead of 8bit

(2) You needed to add LED output to control the LED on the sensor,

  or you could just connect LED pin of the sensor to VDD...

(3) You needed to write an ISR (Interrupt Service Routine) to handle FreqCount_INT

(4) You needed to wait until the ISR called to acquire FreqCount count.

(5) ... well, please refer to my sample 😉

I tested this sample with my CY8CKIT-050.

000-TeraTerm-log.JPG

Then copied the project and modified the pins for CY8CKIT-059.

At least print function seemed to be working, but I did not test with the sensor for CY8CKIT-059.

Best Regards,

25-Jan-2019

Motoo Tanaka

0 Likes