Not applicable
May 25, 2016
05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 25, 2016
05:30 AM
Hello!
I want to do a line follower robot, but I have a problem in Dave 4.2.4! How can i read the values of two QTR-1A Reflectance Sensor? I mean what the code should be? Please help me!!!
I want to do a line follower robot, but I have a problem in Dave 4.2.4! How can i read the values of two QTR-1A Reflectance Sensor? I mean what the code should be? Please help me!!!
- Tags:
- IFX
5 Replies
Not applicable
May 25, 2016
06:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 25, 2016
06:49 AM
HI,
I think you should be able to read the pins using the DIGITAL_IO APP and make decision based on these pins.
Regards,
Daryl
I think you should be able to read the pins using the DIGITAL_IO APP and make decision based on these pins.
Regards,
Daryl
May 25, 2016
07:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 25, 2016
07:37 AM
You have to use the ADC Messurement App (if you are using a DAVE Project)
And read the app help (how to use the API´s)
And read the app help (how to use the API´s)
Not applicable
May 25, 2016
08:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 25, 2016
08:22 AM
I have tried this, but it doesn't work.
Not applicable
May 25, 2016
09:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 25, 2016
09:14 AM
HI,
Andi_H is correct, probably the ADC_Measurement APP is a better fit for this since an analog value is returned to the pin.
There's an example in the APP Help-> Usage section that teaches you to set up an ADC channel. Just to be sure that you are able to correctly get ADC working, make sure you get the example working before moving onto your Reflectance Sensor.
Regards,
Daryl
Andi_H is correct, probably the ADC_Measurement APP is a better fit for this since an analog value is returned to the pin.
There's an example in the APP Help-> Usage section that teaches you to set up an ADC channel. Just to be sure that you are able to correctly get ADC working, make sure you get the example working before moving onto your Reflectance Sensor.
Regards,
Daryl
Jun 01, 2016
07:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 01, 2016
07:36 AM
Hi!
You can use a comparator as an interface between sensors and microcontroller (LM324, LM339). In this way you can use the pins as digital inputs.
Also, you can set the comparator threshold using a variable resistor for different surfaces without any change into your code.
BR,
Adrian
You can use a comparator as an interface between sensors and microcontroller (LM324, LM339). In this way you can use the pins as digital inputs.
Also, you can set the comparator threshold using a variable resistor for different surfaces without any change into your code.
BR,
Adrian