Hi James,
Your project sound interesting. Do you intend to develop something which can replace the normal radio controlled lock/unlock functionality of the car keys? Could you explain a litte more about the system setup, e.g. how will the Android and IOIO be used and how do you plan to interface with the key fob radio receiver and car electronics?
/JP
public class MainActivity extends IOIOActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
findViewById(R.id.active).setVisibility(View.GONE);
findViewById(R.id.inactive).setVisibility(View.VISIBLE);
}
class Looper extends BaseIOIOLooper {
private DigitalOutput led_;
@Override
protected void setup() throws ConnectionLostException {
led_ = ioio_.openDigitalOutput(0, true);
findViewById(R.id.inactive).setVisibility(View.GONE);
findViewById(R.id.active).setVisibility(View.VISIBLE);
}
@Override
public void loop() throws ConnectionLostException {
try {
led_.write(false);
Thread.sleep(500);
led_.write(true);
Thread.sleep(500);
} catch (InterruptedException e) {
findViewById(R.id.active).setVisibility(View.GONE);
findViewById(R.id.inactive).setVisibility(View.VISIBLE);
}
}
}
public void disconnected() {
findViewById(R.id.active).setVisibility(View.GONE);
findViewById(R.id.inactive).setVisibility(View.VISIBLE);
}
@Override
protected IOIOLooper createIOIOLooper() {
return new Looper();
}
}
--To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/d2mRa8TYbNAJ.
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To post to this group, send email to ioio-...@googlegroups.com.
To unsubscribe from this group, send email to ioio-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ioio-users?hl=en.
Thank you for the information! I have it where it changes screens now, but need to time it so that it waits until the connection is completed before switching layouts. Is there a way to do this?James
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/fPMViOsza6sJ.
I am working on a similar idea. I bought a power lock kit with a radio remote for my two door car. I'd like interface the IOIO so that it will use the second RF remote that came with the kit to send a signal. So far, my biggest obstacle has been in deciphering how the remote works. Does anyone know how much power the IOIO uses when in standby mode with a Bluetooth dongle in place?
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/8NVZD11OYFgJ.
Have you tried powering the IOIO from the car? I seem to remember my car voltage spiking around nineteen volts, even though it's a 12V system.
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/w2tnn_PW9d4J.
I like where you are going with this. I'm unsure on something though. How well will the bluetooth capability work through the heavy steel construction of a 60's Impala? Have you tested this and seen if there's any degradation in signal strength going through that metal? I'm working on something that's along these lines though not exactly what you are doing. I'm using the IOIO and a tablet that will be permanently installed into the car dash to control locks and other things as the hardware and program progresses. For my locks I am actually using a relay powered by the board the will source the necessary voltage to the harness, also one to pop the trunk hatch. Unfortunately the current tablet I Have was cheap and does not have blue tooth so I'm somewhat limited with what I can do right now, unless of course I recompile the android version I'm using and include a BT stack, even then I'm unsure if it will work since the tablet was cheap. Anyway keep up the good work and do you mind if I borrow some stuff from your GUI code? I'm not to good at this code stuff and right now just have a super basic gui. Keep up the good work!
-John
On Monday, November 19, 2012 7:54:49 PM UTC-8, James Alexander wrote:All,I am an absolute novice at programming. My background is entirely mechanical, but decided it would be cool to utilize my cell phone to replace my car keys. My goal is to use my phone to unlock/lock my doors (with a line of text to indicate if the doors are locked or unlocked), open my trunk, and also enable the cars "ignition or power". Without the phone on, the car won't start.I have the code skeleton started. I am trying to setup two different layouts one that is "active" and one that is "inactive". The thought being is that you can tell when the phone is within range of the car, and don't have to guess. I am running android 2.3.5 on an X2 and am running into a runtime error that I cannot find a solution to (see attached). I was wondering if someone could shed some light.I have attached a copy of the program in a zip file. I started with the HelloIOIO and modified the main layout to be a framelayout and reference two other layouts that will be "gone" or "visible". At this point, I am trying to get the phone to change background/layouts. Once I get past this hurdle, I will add the push button and pin assignments.Any help is greatly appreciated.James
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/Hi0JF_edd-8J.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/ngouCW5lUboJ.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/O2XQqbmz71MJ.
Quick comment: you can't use the IOIO pins to drive the relay directly, if that's what you were thinking. You need a simple circuit with a transistor and a freewheel diode to do that.
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/4YAIJJF9OtYJ.
From: John Chamberlain <cham...@gmail.com>
To: ioio-...@googlegroups.com
Sent: Sat, Jan 5, 2013 20:47:00 GMT+00:00
Subject: Re: Using my cell phone as a "key fob" to replace my car keys
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/rJNwLvrrqRsJ.
I have bought relay boards from eBay or deals.net for very cheap, and they work great. They have leds to indicate their state as well. I just search for "arduino relay".
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/Sl2EkFOQyzMJ.
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/C_f_cMBJ6rUJ.
From: Ytai Ben-Tsvi <yta...@gmail.com>
To: "ioio-...@googlegroups.com" <ioio-...@googlegroups.com>
Sent: Wed, Jan 9, 2013 16:54:35 GMT+00:00
Subject: Re: Using my cell phone as a "key fob" to replace my car keys
The most recent info is only in the ioio dev forum. IIRC, there is a wiki page, but it's not as complete as the ioio-dev.
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users?hl=en.For more options, visit https://groups.google.com/groups/opt_out.