Hey, I have a Sharp GP2D02, and have been trying to figure out how to use this thing for quite some time now. I have looked over the source code that NetMedia...
10095
Tony Brenke
trbrenke
Jun 1, 2002 7:28 pm
"lowering the input line, waiting for ~70ms, and then clocking the detector 8 times to read out the distance measurment on the output line." ' Demo program for...
10096
Tony Brenke
trbrenke
Jun 1, 2002 7:52 pm
... this is to keep the main task from ending and starting over again. as in "INSTALLED AND READY TO USE" "INSTALLED AND READY TO USE" "INSTALLED AND READY TO...
10098
mixman1982
Jun 1, 2002 8:41 pm
... okay well i did put a do loop after the call tasks and it shows "SINSTALLED AND READY TO USE" in the basicx dialog box (debug.print). so it seems to catch...
10099
kdogg2012
Jun 1, 2002 9:54 pm
Hey I finally got this thing working, but now i have another question. Sorry to again bother you, but when you return a value from the GP2D02, it is in the...
10100
Tony Brenke
trbrenke
Jun 1, 2002 10:14 pm
yes, use data. all numbers are binary data 8 bit number base 10 number 00000000 0 00000001 1 00000010 2 00000011 3 ...
10101
Tony Brenke
trbrenke
Jun 1, 2002 10:19 pm
... this is good ... yes. exactly ... __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup ...
10102
Tony Brenke
trbrenke
Jun 1, 2002 10:20 pm
I don't know why the look for this. only an odd value would put a high on that pin. 1, 3 5 and so on. ... __________________________________________________ Do...
10103
mixman1982
Jun 1, 2002 11:03 pm
... ready ... loop ... good?? how is it good? it still won't run both tasks at the same time. if i ' one out then the other will work. but for some reason ...
10104
Tony Brenke
trbrenke
Jun 2, 2002 1:18 am
... good because the main is now working. one step at a time. ... check the voltage coming in to the input on the adc pin. use a meter. for the two tasks...
10105
mixman1982
Jun 2, 2002 3:28 am
... okay i am slowly following you. haha. ... okay the voltmeter says right now 0.70 volts but now i can't get the lcd to show the adc measurement. bah! ... ...
10106
Tony Brenke
trbrenke
Jun 2, 2002 10:17 am
ok, next thing. do not use call delay. this stops all prossesing. use call sleep instead. this will also allow the second task to run. make the changes below...
10107
petervanlievenoogen
petervanliev...
Jun 2, 2002 9:28 pm
Yes, I have my BX35 running! First look> great A/D, very stable (no caps yet) Bud a little complaining: No good diagrams for min configuration. I've looked to...
10108
mixman1982
Jun 2, 2002 10:04 pm
... okay i got ya. so is it better to use sleep instead of delay for everything?? or just for this particular application? ... nah same thing. this is...
10109
kj62
Jun 3, 2002 3:57 am
I just cant figure it out. I dont know why I am not getting any response out of my ds1050. This code is from www.phanderson.com/basicx/ds1050.html . Are there...
10110
pha555
Jun 3, 2002 4:41 am
Glad to see someone is using this. One thing that I see that I omitted is that 4.7K pullup resistors to +5 VDC must be present on both the SCL and SDA leads....
10111
Tony Brenke
trbrenke
Jun 3, 2002 4:49 am
I just use sleep only. In programming the bx-01 the delay was not relable and caused many problems. I don't use delay. coment out the shifting task. get the...
10112
stan_eye_am
Jun 3, 2002 5:23 am
... And by the way, even though "data" is created as a binary number, you can interpret it as decimal. Try "debug.print cstr(data)" and you'll see what I mean....
10113
mixman1982
Jun 3, 2002 7:21 am
... problems. ... okay once i get everything up and running i will make sure that everything is in sleep mode not in delay mode. why do they have 2 similar...
10114
twesthoff
twesthoff@...
Jun 3, 2002 5:50 pm
I just found this link to a good article discussing serial communication protocols. It compares many of the common ones and would answer many of the questions...
10115
Vic Fraenckel
vfraenc1
Jun 3, 2002 7:53 pm
This query is slightly off topic but I assure you that it is a BasicX project. The information below was taken from the data sheet of a LLC 24 pin device <at...
10116
Dave Houston
dorothy1801
Jun 3, 2002 8:22 pm
Here's a link that shows how to handle SMD components. http://www.seattlerobotics.org/encoder/200006/oven_art.htm Kester 57-3903-5403 is a 35gm (5cc) syringe...
10117
Frank Manning
frankmanning...
Jun 3, 2002 9:32 pm
A new version of the BasicX compiler is under development and is scheduled for release in the near future. The following upgrades are currently being tested: ...
10118
Dave Houston
dorothy1801
Jun 3, 2002 9:42 pm
How about... 1. Adding a timeout parameter to GetQueue 2. A way to exit InputCapture when a pulse (or space) width exceeds a limit value. This would allow it...
10119
Dennis Clark
dennis_lm_clark
Jun 3, 2002 9:46 pm
Frank, These are all cool items, but IMO not really important to an embedded controller. FWIW, I think the BX needs more a hardware oriented library to handle...
10120
Frank Manning
frankmanning...
Jun 3, 2002 10:44 pm
From: "mixman1982" <catchya@...> ... Sleep was in the original system library, and Delay was added later as an easier-to-use version of Sleep. The problem...
10121
twesthoff
twesthoff@...
Jun 4, 2002 12:02 am
If this is just for prototyping and not for production, just use regular solder. Solder short pieces of wirewrap wire to each pad on the chip and then solder...
10122
twesthoff
twesthoff@...
Jun 4, 2002 12:13 am
When you add the Enum don't forget to allow a value to be assigned to each item (as VB allows) so that you don't have to always live with values of 0 through...
10123
Frank Manning
frankmanning...
Jun 4, 2002 1:20 am
From: "twesthoff" <twesthoff@...> ... Excellent idea. We'll do that. ... Yes, but it's better if the compiler is able to check for type mismatches ...
10124
Richard Friedrich
dakota235us
Jun 4, 2002 2:23 am
who fixes broken bx-24 (plugged it in backwards) thanks richard...