Show Posts
Pages: [1] 2 3 ... 33
1  Using Arduino / Programming Questions / Re: Very strange OBDuino power issue. on: June 05, 2013, 10:00:54 am
so it seems something is wrong in the code + how it reads the info from my car, but that just sparked an idea. since the iso9141 interface is still not working, it could be causing it to set the wrong contrast.

around 60-70 the contrast looked how it should. now its just this interface error smiley-sad any tips?

im now using a si9243 (MC33290 replacement), just to rule out any issues with the converter. it has been checked working in the obduino project here: http://ecomodder.com/forum/showthread.php/freescale-mc33290-replacement-19692.html
ive followed it exactly except the 100 ohm, the diode, and the extra 12v from the cig lighter (design fail by that person smiley-wink).

i should try it on another car. Ok, tried two others. still no go smiley-sad smiley-sad has to be something with the hardware
2  Using Arduino / Programming Questions / Re: Very strange OBDuino power issue. on: June 04, 2013, 10:57:03 pm
derp. lets do some troubleshooting. ill load up a program that enables the lcd blah blah blah and do a for loop to change the contrast. should eliminate something smiley

 Ill let you guys know how it goes.

if anyone cares; code:
Code:
#include <LiquidCrystal.h>

#define LCD_RS 4
#define LCD_ENABLE 5

#define LCD_DATA1 7
#define LCD_DATA2 8
#define LCD_DATA3 12
#define LCD_DATA4 13

#define LCD_COLS 16
#define LCD_ROWS 2


// LCD Pins same as mpguino
// rs=4, enable=5, data=7,8,12,13
LiquidCrystal lcd(LCD_RS, LCD_ENABLE, LCD_DATA1, LCD_DATA2, LCD_DATA3, LCD_DATA4);
#define ContrastPin 6
#define BrightnessPin 9

void setup() {
  lcd.begin(LCD_COLS, LCD_ROWS);
  analogWrite(BrightnessPin,150);
  delay(100);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  for (int i = 0; i<255; i+=2)
  {
    analogWrite(ContrastPin,i);
    lcd.setCursor(0, 1);
    lcd.print(i);
    delay(400);
  }
  //51 sec to do a cycle

  for (int i = 255; i>0; i-=2)
  {
    analogWrite(ContrastPin,i);
    lcd.setCursor(0, 1);
    lcd.print(i);
    delay(400);
  }
}
3  Using Arduino / Programming Questions / Re: Very strange OBDuino power issue. on: June 04, 2013, 10:24:26 pm
i finally took the time (5 min lol) to put in the resistors. still have the contrast issue smiley-sad

and i still haven't got the actual k line interface working either so smiley-sad
4  Using Arduino / Project Guidance / Re: Simulate push button with arduino on: May 22, 2013, 01:20:27 pm
is teh diode connected right? the flow goes to the arduino (see that pic i made on the last page) a diode only lets current flow in one direction, to specify this, diodes generally have a one colored body with a stripe at one end. whatever end the stripe is on is the only way current flows. if the black is to the left and the stripe is on the right, current flows left to right.
5  Using Arduino / Project Guidance / Re: Simulate push button with arduino on: May 22, 2013, 11:40:00 am
never ran into that problem before, maybe try one of those glass diodes?

and ill wait to see what someone else say for those other pads (.6v ones)
6  Using Arduino / Project Guidance / Re: Simulate push button with arduino on: May 22, 2013, 07:19:28 am
Quote
So for the center pad do you think that a IN0001 to the +2.34V terminal will do the trick?
Yes.
7  Using Arduino / Project Guidance / Re: Simulate push button with arduino on: May 21, 2013, 06:02:32 pm
the first one is pulled up to ~2.3v so that when gnd is connected to that center pad, the MCU senses gnd, and the 2.3v goes to gnd through the resistor (so it doesn't create a short to ground). thats really strange for the other pads. .6v shouldnt be enough for a mcu to sense.

so for the center, you just need a diode. please check the other two again.
8  Using Arduino / Project Guidance / Re: Radioshack LED strip (Power Issues??) on: May 18, 2013, 02:06:43 pm
ahhh yes good point on the rev polarity!
9  Using Arduino / Project Guidance / Re: Radioshack LED strip (Power Issues??) on: May 18, 2013, 01:46:11 pm
it has to be pos tip. you probably blew the voltage regualtor on the arduino so it only works on usb
10  Using Arduino / Project Guidance / Re: Radioshack LED strip (Power Issues??) on: May 18, 2013, 11:46:01 am
ignore all the led strip stuff and try pluging in just the barrel plug, does the arduino light up? (the ON led)
11  Using Arduino / Project Guidance / Re: Problem with optoisolator and Arduino as a flash trigger on: May 18, 2013, 01:07:59 am
if a 2.2k still doesnt work, then try a new chip and check that the opto is triggering. dunna why it would be burned out, but you never know.
12  Using Arduino / Project Guidance / Re: Radioshack LED strip (Power Issues??) on: May 18, 2013, 01:04:23 am
it seems that the LED strip is controlled by an analog pin, so it could require some sort of input before doing anything. take your strip, put gnd to gnd on the arduino board. vin to vin on the arduino board header. and the signal wire to A0. then upload the program, unconnect from usb and plug in the arduino via the barrel jack.
13  Using Arduino / Project Guidance / Re: Project feasability - Solar charger and monitor on: May 18, 2013, 12:53:45 am
For the first part (I want it to be able to charge a battery up to a certain voltage, then when full, it dumps the excess charge into a dump load), use a SPDT relay or a SPCO / SPTT (stable off position for between dummy load and charge). That relay will move the 12v output from the solar panel to the charging circuit and the dump off. So youll also need to make a charge circuit for the solar panel -> battery. The relay can easily be controlled using an arduino. to log data about how much it is charging / dumping, youll need to make voltage and current sensors. here is in example that i made for switching dc to change between rev and fwd for some dc motors: http://1.bp.blogspot.com/-q_O0LU735H4/UYstU-VV1YI/AAAAAAAACfA/_q_CKT7TdWI/s640/motors.png

for the data logging you mentioned later, you just need some of the voltage / current measuring things i mentioned earlier. i've never used a Ethernet shield, but with a few tutorials, you should be ok!

for a voltage sensor, you just need a voltage divider. it essentially "divides" the voltage to a lower range. so instead of 10 to 15v or something measured on teh battery, a 0 to 5v signal is sent to an arduino analog in. go here: http://www.raltron.com/cust/tools/voltage_divider.asp set r1 as 22, and r2 as 10 (ohms or kohms doesnt matter, just the ratio). put 15v as the in voltage and click calculate, you should see the max voltage the arduino will read. now delete the in voltage and replace it with 11v and delete the out voltage number. click calculate and you''ll see the minimum voltage the arduino will see. now, connect the battery(fully charged) to the divider and check the output (to the arduino) with a voltage meter. then find the analog value it corresponds to with the arduino. do the same for a dead battery. then change the analog value back into a voltage number and store it in a byte, int whatever and write it to the ethernet.

this explains the current sensor: http://www.vwlowen.co.uk/arduino/current/current.htm

surely possible!!!
14  Using Arduino / Project Guidance / Re: Problem with optoisolator and Arduino as a flash trigger on: May 18, 2013, 12:21:41 am
you need to use a 4.7k resistor on the LED side of the opto, not a 10k. neg -> 4.7k -> led -> pos etc.
15  Using Arduino / Project Guidance / Re: Simulate push button with arduino on: May 17, 2013, 09:14:38 pm
yes! dont you love it when things go to together like that smiley
Pages: [1] 2 3 ... 33