FUN AND NEW IDEAS
Go to bottomPage: 1234
TOPIC:
#1139
Re:Distance Measurement using ZIlog 3 Months ago Karma: 0
Please tell us that your processor (Z8F042A) and sensor are already given, or you can select them by your decision.

Can you select IR-based range sensor like this?
The series has an analog distance output and you can semi-straightforwardly replace the temperature sensor described in AN0191 with the range sensor. The source code of AN0191 is available here

What purpose are you going to use the range sensor? How long is your nearest/farest target range?
Tomohiro HARAIKAWA (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1140
Re:Distance Measurement using ZIlog 2 Months, 4 Weeks ago Karma: 1
There is a general algorithm (not code) posted here:

www.polytechforum.com/robotics/using-the...ance-calcul-503-.htm

and e-gizmo in the Phillipines sell this kit (including schematic)

docs.google.com/file/d/0BxdLxDCD6HidVGlDbUtFNThzQUk/edit?pli=1

and there is Zilog's Application note AN004901-900 for the older Z8 controllers which has a description and schematic of an automotive rear sonar:

www.zilog.com/docs/appnotes/an0049.pdf

I would think that the code should be available somewhere on the Zilog website for this application note but I cannot find it.

Hope this helps.
MK (User)
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1141
Re:Distance Measurement using ZIlog 2 Months, 4 Weeks ago Karma: 0
I admit, I didn't look at the processor datasheet. I've been using the larger Z8 processors and assumed that i2C was present on the chip indicated. It is not. Although it's technically possible to bit-bang i2c, it's not a trivial task for a beginner to debug.

It would be better to find a processor with the i2c interface, Zilog or other. Plus a mature i2c device handler is needed to save debugging time.

HC-SR04 Ultrasonic Sensor Distance Measuring Module is what I have, it only has trigger and sense pins leaving it to the user to accurately determine the elapsed time.

The datasheet for your part is a critical piece of information. If you can't find it, try listing the part number and where you ordered it.
mr (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1142
Re:Distance Measurement using ZIlog 2 Months, 4 Weeks ago Karma: 0
Dear graceshin00:

If you are a fresh programmer as you said and no reason to use a Z8F042A, you had better to begin from an Arduino for the first time.

If you succeed to measure a distance with a Z8, you have to implement a dynamic display circuit and driver which drives four 7-digit LED displays with a 28-pin device.
Tomohiro HARAIKAWA (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1145
Re:Distance Measurement using ZIlog 2 Months, 3 Weeks ago Karma: 0
So the codes you've given to me is for the ultra sonic to measure it..
I am new in zilog that is why I had a hard time in understanding this codes.. But now I want to know how will you display it in the 7 segments??
I know how to use it in PIC... but in zilog.. its very hard to understand..
graceshin00 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1146
Re:Distance Measurement using ZIlog 2 Months, 3 Weeks ago Karma: 0
I really want to use arduino.. Because it is much simplier.. But our instructor tell us to used Zilog that is why its very hard for me to understand.. how and why those codes..
graceshin00 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1234