Results 1 to 2 of 2

Thread: Input problem

  1. #1
    Newbie
    Join Date
    Feb 2010
    Posts
    8

    Input problem

    Hi,
    i installed my car pc a couple of weeks ago with an atom cpu , directed radio , a fusion brain that will control power windows, central locks , remote for amplifiers, shutting down for pc and a steering wheel buttons. Now i'm in the phase of programming the fusion brain and i have it connected like this:

    input 11 is pulled up ( a 10k resistor from 5v to input 11). when ignition is turned off 5 volts stop so i have a logical 0 so i want the fusion brain to send a command to RR TURNOFF. The com part is working i tested it in my desktop pc with a virtual brain and it works great, as soon as voltage drops lower than 3 volts the command is sent to rr and the pc shuts down.

    But, when i try it in the car pc , here is what happens.
    Fusion control center is started automatically when windows start, RR starts (because there are commands in the COM part in fusion brain), and as soon as it starts it suddenly powers off.!!!!
    i changed the command to VOL+ for checking and i see that as soon as RR starts FB sends 2 or three commands in RR. Volume raises two or three times. What the heck is wrong?? i just can't figure it out, i suppose it has to do with timers but i couldn't figure it out. I also changed the delta timer ( what is that??) in the logic but still nothing.
    A work around could be a delay for few seconds but i can't figure it out either..If you could please help me i would be gratefull.
    Sorry for the long post and for my english , i'm from greece.

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    It is because all the inputs are 0 (which 0 < 3) on startup.

    So you can do something like

    a) if in11 is 5v, then variable "ok to shutdown" = 1, else "ok to shutdown" = 0. Delta timer that to 1000 or so.

    b) if in11 is 0v AND "ok to shutdown" = 1, then send STOP. Delta that to be at least 1/2 of the above, so lets say 200.

    The delta is the minimum time after the event has fired that another event will be fired for the same thing. So it will take another 1s for the first one to be fired, and another 200ms for the second one to be fired after being fired.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Similar Threads

  1. Renault "Tuner List" Head Unit/CD changer hacking - Controls
    By Vicne in forum Hardware Development
    Replies: 800
    Last Post: 10-30-2012, 07:09 PM
  2. Voyager: Bluetooth OBDii for the Droid
    By regulatre in forum Software & Software Development
    Replies: 35
    Last Post: 04-29-2010, 10:31 AM
  3. Swype touchscreen input
    By DaveDog in forum Road Runner
    Replies: 7
    Last Post: 02-09-2010, 09:30 PM
  4. Very Strange Problem
    By reblis in forum General Hardware Discussion
    Replies: 3
    Last Post: 12-31-2009, 01:51 PM
  5. Requests
    By CdRsKuLL in forum FreeDrive
    Replies: 118
    Last Post: 08-11-2006, 05:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •