Go to Post There is beauty in pure simplicity. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2004, 18:05
jjv jjv is offline
Registered User
#0548
 
Join Date: Jan 2004
Location: Northville, MI
Posts: 30
jjv is an unknown quantity at this point
help w/ educontroller

Hi,
I'm in the process of getting the beacons up and running on the EduController.
I have one connected to PWM IN 1, and would like to put a IR detector on Digital In 1 to monitor it.
I would then like to have a debug that shows the status of this input.
All that I have tried has created errors though.

Any hints?
  #2   Spotlight this post!  
Unread 21-01-2004, 09:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: help w/ educontroller

Quote:
Originally Posted by jjv
Hi,
I'm in the process of getting the beacons up and running on the EduController.
I have one connected to PWM IN 1, and would like to put a IR detector on Digital In 1 to monitor it.
I would then like to have a debug that shows the status of this input.
All that I have tried has created errors though.

Any hints?
Use the beacon code and hook the IR sensor to Digital Input 6.
Add printf("%d",(int) rc_dig_in06); anywhere that gets executed regularly, like Process_Data_From_Local_IO. You'll see a stream of 1's when the beacon is off, and a mixture of 1's and 0's when the beacon is on.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-01-2004 at 09:28.
  #3   Spotlight this post!  
Unread 21-01-2004, 10:37
jjv jjv is offline
Registered User
#0548
 
Join Date: Jan 2004
Location: Northville, MI
Posts: 30
jjv is an unknown quantity at this point
Re: help w/ educontroller

Thanks!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi