Hello,
I am trying to use my PCAN-MIO to tap into a speed sensor feedback signal. The speed sensor has three pins (GND, 5VDC, and Output Signal). With an oscilloscope, I can see the raw square wave signal when I am spinning the tone ring. Now I am trying to send that square wave raw signal through a PCAN-MIO Ain Pin, but I am not sure how to do that yet. Can you please advise?
I tried with using PCAN-Editor 2 in General tab to select add new Symbol under Bus_0 and then under Symbol, I added new Variable ("Var1" renamed it to "Ain0") and bit length set to 32. Then I went to Confic0 I/O tab and selected Add defined Bus. After I added the defined Bus, I selected Symbol1 and changed the direction from Receive to Transmit and checked the Enable box and selected 1 millisecond for Period. Then I selected Ain0 and went to I/O function menu and selected 81h (DIn Frequency). Then I went to I/O No. and selected Freq0 and then I selected the Enable check box.
I was experimenting first before reaching out to you based on what I had learned from the PCAN-MIO tutorial but I am not having much luck. Is there a way that you can help me or by sending me a file that I can upload and then learn from it on how you set that up on Peak Editor 2?
Thanks in advance for your time and support!!!
Kind Regards,
Joe
Tap Into Speed Sensor
Re: Tap Into Speed Sensor
Hello.
What voltage will the rectangle have ? What frequency (min/max) ?
if your sensor signal is a pulse with variable speed, then connect it to a PWM in.
This will give you the frequency as a number, which may be sent out over CAN.
5V supply is also available (sensor supply 5V/200mA) and might be switched on or off.
Please sent your config (so far) to "info<at>peak-system.com",
I will complete the mentioned function then.
Assuming voltageand frequency will fit the input characteristics ...
(see manual, ressources chapter).
Greetings
What voltage will the rectangle have ? What frequency (min/max) ?
if your sensor signal is a pulse with variable speed, then connect it to a PWM in.
This will give you the frequency as a number, which may be sent out over CAN.
5V supply is also available (sensor supply 5V/200mA) and might be switched on or off.
Please sent your config (so far) to "info<at>peak-system.com",
I will complete the mentioned function then.
Assuming voltageand frequency will fit the input characteristics ...
(see manual, ressources chapter).
Greetings
Re: Tap Into Speed Sensor
Hello S.Schott,
The sensor will have no more than 5 volts power to it. As for the frequency, I am not yet sure what the (max/min) is since that will be my variable reading. The speed sensor will be interfacing with a 55 tooth tone ring and the three pins that are on the sensor are (5 volts, ground, and frequency output signal).
I am using 5V Out and GND from pins #19 and #18 to supply power to the speed sensor. But I am not sure what pins to use on the PCAN-MIO for the PWM in. My configuration is a mess in PCAN-Editor 2 and would prefer to start all over.
Can you please send me a configuration file that I can upload onto my PCAN-Editor so that I can understand how you set it up and that way I will try it on my sensor after I upload your configuration onto my PCAN-MIO?
Thank you in advance for your time and help!
Regards,
Joe
The sensor will have no more than 5 volts power to it. As for the frequency, I am not yet sure what the (max/min) is since that will be my variable reading. The speed sensor will be interfacing with a 55 tooth tone ring and the three pins that are on the sensor are (5 volts, ground, and frequency output signal).
I am using 5V Out and GND from pins #19 and #18 to supply power to the speed sensor. But I am not sure what pins to use on the PCAN-MIO for the PWM in. My configuration is a mess in PCAN-Editor 2 and would prefer to start all over.
Can you please send me a configuration file that I can upload onto my PCAN-Editor so that I can understand how you set it up and that way I will try it on my sensor after I upload your configuration onto my PCAN-MIO?
Thank you in advance for your time and help!
Regards,
Joe
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Tap Into Speed Sensor
Thread closed - solved by support
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------