Reading the Ultrasonic Sensor 133009

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
Benutzeravatar
ft-ninja
Beiträge: 113
Registriert: 01 Nov 2010, 14:26
Wohnort: Inner Mongolia
Kontaktdaten:

Reading the Ultrasonic Sensor 133009

Beitrag von ft-ninja » 11 Nov 2011, 17:44

Hello Folks!

I need some help. Does anybody knows how to read the distance value from ultrasonic sensor using ordinary microcontroller (not ROBO TXC)? What is the type of the sensor interface: analog, ppm or serial?
==
ft-ninja

Majus
Beiträge: 129
Registriert: 30 Nov 2010, 15:35
Wohnort: Deutschland

Re: Reading the Ultrasonic Sensor 133009

Beitrag von Majus » 12 Nov 2011, 11:36

Hello,

Use the port D1 or D2 for the Ultrasonic Senor.
But the 133009 is speciell for TX (better: 128597). Then you search in the main menu on the left side in RoboPro. There is input/output, where you
can find a symbol for port D1/D2 (right mouse klick to change)
If you connect this with a variable, you'll see, if you start the
program, numbers. This is the distance in cm.

Regards
Majus

By the way, first push the Ultrasonic in the Interface, then switch on the power

Deutsch:

Hallo,

Benutze Anschluss D1 oder D2 für den Ultraschallsensor. Aber der 133009 ist speziell für den Tx (besser: 128597)
Dann suchst du auf der linken Seite in RoboPro. Dort findest du Eingänge/Ausgänge, wo du ein Symbol für D1/ D2 findest (ändern mit rechter Maus). Mit einer Variable verbunden zeigt dir diese bei Start des Programms die Distanz in cm.

Gruß
Majus

Übringens: Erst den Sensor einstecken und dann Netzstrom einschalten.

Benutzeravatar
ft-ninja
Beiträge: 113
Registriert: 01 Nov 2010, 14:26
Wohnort: Inner Mongolia
Kontaktdaten:

Re: Reading the Ultrasonic Sensor 133009

Beitrag von ft-ninja » 12 Nov 2011, 12:35

Hello Majus,

Thanks, I know how to read values from Sensor in ROBO Pro environment. My question is: Which is the type of signal is going from this sensor? How the distance is coded in this signal? I need this info to connect the Ultrasonic Sensor to the ATMega microcontroller.
==
ft-ninja

mohr
Beiträge: 17
Registriert: 14 Mär 2011, 12:59
Wohnort: Deutschland

Re: Reading the Ultrasonic Sensor 133009

Beitrag von mohr » 12 Nov 2011, 13:06

Hi ft-ninja,

I suppose that the 1-wire-bus is used because there are only two kables, but you could try to ask Fischertechnik or Knobloch directly. Maybe they will tell you.
But: Even if they tell you, you will not now the protocol.
Have you got a Ociloskope or an Logic analyzer? You could try to reverse engineer it.

In Deutsch:
Hi ft-ninja,

ich vermute, dass der 1-wire-bus verwendet wird weil man er ja nur zwei Kabel hat, aber du könntest probieren Fischertechnik oder Knobloch direkt zu fragen? Vielleicht sagen sie es dir ja.
Aber: Selbst wenn sie es dir sagen kennst du noch nicht das Protokoll.
Hast du ein Oszilloskop oder einen Logic Analyzer? Dann könntest du probieren das Protokoll durch "Reverse engineering" herauszufinden.
Grüße/Regards,
André

Majus
Beiträge: 129
Registriert: 30 Nov 2010, 15:35
Wohnort: Deutschland

Re: Reading the Ultrasonic Sensor 133009

Beitrag von Majus » 12 Nov 2011, 18:02

Hello,

sorry, I thought, you wanted to know how to use the informations of the ultrasonic sensor in RoboPro. And I have asked this question here some month ago, because I wanted to buy one...

Regards
Majus


Übersetzung:

Hallo,

Entschuldigung, ich dachte, du wolltest wissen, wie man die Informationen vom Ulltraschallsensor in RoboPro liest. Und ich habe diese Frage hier vor einigen Monaten gestellt, weil ich mir Einen kaufen wollte...

Gruß
Majus

Benutzeravatar
schnaggels
Beiträge: 389
Registriert: 31 Okt 2010, 23:14
Wohnort: Kelkheim
Kontaktdaten:

Re: Reading the Ultrasonic Sensor 133009

Beitrag von schnaggels » 06 Sep 2013, 18:05

Hi ft-ninja,

just read this post, did you find out the used US sensor protocol finally?

Thanks,
Thomas

Antworten