CrazyEngineers Forum

Turn The Screws!

Open your eyes, look in front, look at the back, look at any angle and you will see something that is an engineer's creation.

Engineers have been making things possible that others could only imagine. It perfectly makes sense to have a common place for engineers from around the world where they can share ideas, innovate, & help each other. Engineers are eternal, with the younger at 62 & the youngest at 17, the CEan gang consists of working professionals, students, entrepreneurs, CEOs, professors, geeks & nerds.

Need we say more? Click Here To Join The Gang!
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Electrical & Electronics Engineering
Reply

  #1 (permalink)
Old 17th June 2008, 02:21 AM
CE - Newbie
 
I'm a Crazy automotive Engineer
Join Date: 13th June 2008
Posts: 1
Default Send 12v Serial Data from PIC to ECU

I have a device that sends a stream of data to an ECU. The data is NOT RS232, it is simple async 8N1, with a logic '0' represented by 12v and a '1' = 0v.

What I wish to do is emulate this device using a PIC, but be able to send the ECU any hex word I choose. For testing purposes I have been playing with the following, in an attempt to do this:


Cls
For sec_code = 65535 To 0 Step -1
Print At 1, 1, Dec sec_code
Print At 2, 1, HEX sec_code
RSOut HEX sec_code
DelayMS 10
Next


I've tried this at 300baud 8N1, inverted. The 5v output from the pic I've used to trigger an opto, which then switches the 12v sent to the ECU input.

But I can't seem to make the ECU respond to my data. (Surprisingly enough).

Any ideas / suggestions on how to convert the 5v serial data O/P from the PIC into the 12v input that the ECU needs?



Cheers,
Chrisall.
chrisall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)
Old 20th June 2008, 03:10 AM
CE - Regular Member
 
reachrkata's Avatar
 
I'm a Crazy Electronics Engineer
Join Date: 4th November 2006
Posts: 68
Lightbulb Re: Send 12v Serial Data from PIC to ECU

Hi Chrisall,

The simplest way I would say is to use a rail-to-rail Opamp in comparator configuration. Connect V+ to 12V, V- to 0, In- also to 0 and finally IN+ to the 5V serial data.
This should do the trick.

-Karthik
reachrkata is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 09:25 AM.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.Ad Management by RedTyger