Search found 7 matches

by LtDan80
27 February 2008, 13:37 PM
Forum: ZX-24
Topic: multi-tasking ping sonars
Replies: 7
Views: 6134

I am using a ZX-24a. The board I am using is a motor mind carrier board. I am using 2 ping sonar's, and it is powered through a 12 volt ac to dc converter. When it enters the MMC it gets regulated down to 5 volts.
by LtDan80
27 February 2008, 10:59 AM
Forum: ZX-24
Topic: multi-tasking ping sonars
Replies: 7
Views: 6134

Don, I restructured the code. It now reads: Dim Stack1(1 To 36) As Byte Dim Stack2(1 To 36) As Byte Dim Width1 as Single, Feet1 as Single, Inches1 as Single Dim Width2 as Single, Feet2 as Single, Inches2 as Single '--------------------------------------------------- P...
by LtDan80
25 February 2008, 10:55 AM
Forum: ZX-24
Topic: multi-tasking ping sonars
Replies: 7
Views: 6134

multi-tasking ping sonars

The current problem I am having is that after about 3 minutes of running the code, it begins to malfunction. The chip randomly gives a high reading and a low reading to either sensor. It works perfect before this. i am trying to figure out if it is an RC time constant problem, a problem with the RAM...
by LtDan80
19 February 2008, 20:21 PM
Forum: ZX-24
Topic: Problem with Ping Sonar
Replies: 5
Views: 6025

Thank you, I actually ended up finding the problem. It was not so much the code, as the school computer I have been working on, It actually took off the setting for the zx-24a. Once i went back into that and identified the target chip it worked. I just learned that I need to do that every time I hav...
by LtDan80
18 February 2008, 10:51 AM
Forum: ZX-24
Topic: Problem with Ping Sonar
Replies: 5
Views: 6025

Problem with Ping Sonar

Here is my code, Option Explicit Public Sub Main() Dim Width as Single, Feet as Single, Inches as Single Do Call PulseOut(18, 3.0, 1) Call PulseIn(18, 1, Width) Feet = Width * 550.0 'assuming 1100 feet per sec Inches = Feet * 12.0 Debug.Print CStr(Inches) Call Delay(0.1) Loop End Sub This code works...
by LtDan80
13 February 2008, 10:49 AM
Forum: ZBasic IDE
Topic: Problem with compile
Replies: 2
Views: 5896

I figured out the problem, I was doing file new, instead of project new. I was trying to use the file to run the program, it is working fine now. I will be working with this chip a lot for a senior graduation requirement. I'm sure you will be hearing back from me. I will also send the final report w...
by LtDan80
13 February 2008, 7:44 AM
Forum: ZBasic IDE
Topic: Problem with compile
Replies: 2
Views: 5896

Problem with compile

I'm not sure if the download for the compiler worked, or if there is a problem somewhere else. I hit compile, and it tells me that it cannot read my file because it cannot find it, same thing when i hit go. My computer will not read the file extensions at all. Not sure if this is common or not. I'm ...