Show Posts
Pages: [1]
1  Using Arduino / General Electronics / Re: Regulate VIN on: July 03, 2011, 01:32:01 pm
as you can see i am a noob

well i have a VB application GUI with Scroll Bars that will control the speed of the DC motors.
there is 2 scrolls bars

1. from 0v (duh) to 5V

2. from 5V to 9V

well my Arduino is conected to 9V battery.

i have pins 4,5,6,7 connected straight to the motors, which gives me 5V max...that is no problem...i can regulate that from 0 to 5

but then with diodes i have connected a relay to the motors which can supply up to 9 V, this relays are "turn on" with pins 8,9
when the relays are turn on 9V are pass through the output...

that is where a transistor is kinda useful (i think) to regulate the voltage from 0 to 9V...or 5 to 9

but the problems is... the max voltage i get from the arduino to the emitter of the transistor is 5V,
so even if the relay is turn on with 9V output the max V i can get thru the transistor will b 5V,
which defeat the porpuse of having 5-9V regulated volts

i hope i explain myself well, i have been re installing windows on my pc soon im done i will create the circuit design
2  Using Arduino / General Electronics / Regulate VIN on: July 03, 2011, 12:46:30 am
Is it possible to regulate the VIN pin of arduino ?
for example...

if the power supply of the arduino is 9V Battery can i regulate it somehow with code to output 5V or 7V (in other words based on the amount of volts chose)

thank you for ur time
3  Using Arduino / Project Guidance / Regulate VIN on: July 03, 2011, 12:45:53 am
Is it possible to regulate the VIN pin of arduino ?
for example...

if the power supply of the arduino is 9V Battery can i regulate it somehow with code to output 5V or 7V (in other words based on the amount of volts chose)

thank you for ur time
4  Using Arduino / Networking, Protocols, and Devices / Re: .vb Application Serial Port thru Xbee on: February 25, 2011, 06:24:25 pm
you know 1st i was pissed at myself for being so stupid and not noticing that the wire that was connecting both the Xbee shiled and the Arduino was not thick enough to make connect both of them the actual socket that i was using the pins coming out of it was thin enough to b lose
therefore causing the connection weaker or "timeout packet" -.- ' '  so thats one

AND NOW !  GRRR smiley-mad smiley-mad smiley-mad i think i broke my arduino mega 2560 

when i connected to the pc via usb not xbee
vista doesn't detect the driver at all
doesnt show in device manager , it doesnt make the sound when you connect a new driver to the pc

but wat makes it even more strange is that the power led on arduino still On (green)
when i reset it still on and the L (led flashes or sometimes stays on )
and the TX and RX LEDS stay off all the time no matter I reset
and i still gettin 5V and 3 V from the respective pins

I had it with this micro-controller going back to PIC -.- -.-
5  Using Arduino / Networking, Protocols, and Devices / Re: .vb Application Serial Port thru Xbee on: February 23, 2011, 08:25:22 am
yea ... well i prob gonna take me a week to get another USB explorer for the Xbee
but i shall buy another one they not that expensive either ...
then i was think you think i fried the Xbee xD cuz even if it was the shield
then i read somethings on the net like solding some pins in orther to make reset or
talk to each other did you sold anything  on your shields? o.0
6  Using Arduino / Networking, Protocols, and Devices / Re: Trouble with Xbee buad rate on: February 23, 2011, 07:30:17 am
i have S1 as well but for some reason i dont seem to have luck having the right configuration
and yes S1 sounds good like he said since is point to point and you would need a usb Xbee explorer to modify each module u have
its really good product both modules need to know they exist thru address and channels you can only achieve that with usb xbee explorer
7  Using Arduino / Networking, Protocols, and Devices / Re: .vb Application Serial Port thru Xbee on: February 23, 2011, 07:25:18 am
ok now prob I'm going to confuse you smiley-lol

I placed an LED on pin 8 and 11
if pin 8 is on means no data is available
if pin 11 is on means data is available

void setup()
{
  Serial.begin(9600);
      pinMode(8,OUTPUT);
    pinMode(11,OUTPUT);
}
void loop()
{
  if(Serial.available())
  {
    digitalWrite(11,HIGH);
    Serial.print((char)Serial.read());
  }
  else if (!Serial.available())
  {
    digitalWrite(8,HIGH);
    digitalWrite(11,LOW);
  }
}

so then i use AGAIN ! -.-' X-CTU range test
and nothing no conection Data timeout !
AND on the arduino Pin 8 lights up !

Now when i do the test on X-CTU from arduino to usb explorer (arduino now sends data for test to usb explorer) the conection is 99% with one packet lost

this is confusing at this point im starting to think is the Xbee shield on arduino ! the one not working the UART is on when i do the test
and i even also tried setting it up ONLINE and nothing

why is it so complicated with the S1 the fucntion sets are as helpful as the XB pro or S2

Do you know anyway to fix it? or go around this problem either software/hardware - wise ?

and agian thank you so much for your help smiley-grin
8  Using Arduino / Networking, Protocols, and Devices / Re: .vb Application Serial Port thru Xbee on: February 21, 2011, 01:18:02 pm
i tired what you said change the DL MY and Pan ID for both Xbee modules

---BASE---                 ---Reciever---
PAN ID = 27                PAN ID = 27
DL 4444                      DL 3333
MY 3333                     MY 4444

modem XB24 Function Set XBEE 802.15.4 Version 10E8

then i uploaded this simple applicaiton to the Arduino to test connectivity using X-CTU range test
void setup()
{
  pinMonde(11,OUTPUT);
  Serial.begin(9600);
}
void loop()
{
  if(Serial.available())
  {
    Serial.print((char)Serial.read());
    digitalWrite(11,HIGH);
  }
}

it worked the pin 11 LED turned on and on the range test graph it show 100% connection
i was so happy and decided to now send the any value with my .vb code

BUT once again nothing happend smiley-sadsmiley-sad  T_T .... on the shields it shows the TX and DOUT blink (usb explorer / xbee shield)

so i went back to do the test range and again 0% nothing happend lost connection with XBee was lost smiley-sad thte XCTU failed

this is rele anoying me im reading every single tutorial online going back to my networking books programing techniques to go around
this problem but so far no results and i am very ashamed to not get it working and keep asking for help

can somebody please help me thank you
9  Using Arduino / Networking, Protocols, and Devices / Re: .vb Application Serial Port thru Xbee on: February 21, 2011, 07:11:55 am
omg im sorry yea ehmm the pinMode(8,OUTPUT) i have that right im sorry apologize i copy the wrong sketch so yea
it would have pinMode set up as you mention

now i did some other configuratoins to my Xbee tho here are the 2 configurations i have for my xbee modules
and yes im using XCTU

i have my DL MY PAN ID and so As CH well set up i think...
but with extra configurations at the line IO pass
---Base---
(3) DO -DIO0 Configuration is set to 3 DI  (base XBee connected to pc thru usb explorer)
(1) IC - DIO change detect set to 1
(FFFF) IA -I/O Input Address

--Reciever---
(5)D0 - DIO0 Configuration 5 (do High)
(1) IC - DIO change detect set to 1
(FFFF) IA -I/O Input Address

i guess if you have or may b download X-CTU you can load those files i upload on this reply message
Modem XBEE : XB24  Xbee 802.15.4  Version 10E8

even its its on XBP24 modem or Xb24 with the same desctiptions i just mention above it wont make com all the time

so now i know is my Xbee set up based on what you said, could you please help me with the right configuration
thank you again so so much for your time smiley-grin



10  Using Arduino / Networking, Protocols, and Devices / Re: .vb Application Serial Port thru Xbee on: February 20, 2011, 05:26:39 pm
well its my first time here so idk how to walk myself thru the site

1. Yes it sounds contradictory about having the Pan ID , channel, ehm low address sourc, all that stuff. But believe i run range test once it works and some other times it doesnt keeps saying Data timeout.

2. yes when i said DOUT led blink i was refering to the Xbee shield on the Arduino board
whenever i had stablish good connection from PC to Arduino wireless... the usb xbee explorer's TX LED will blink AND at the same time the DOUT LED on the XBee shiled will blink  but no action.

so here is my VB code very simple

Imports System.Object
Imports System.MarshalByRefObject
Imports System.ComponentModel.Component
Imports System.IO.Ports

Public Class Test

    Dim serialport1 As SerialPort
    Dim clicked As Boolean

    Private Sub Test_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Try
            serialport1 = New SerialPort()
            serialport1.PortName() = "COM9"
            serialport1.Parity() = Parity.None
            serialport1.BaudRate() = "9600"
            serialport1.DataBits() = 8
            serialport1.Open()
        Catch ex As Exception
            MsgBox(ex.Message)
            serialport1.Close()
        End Try
        Left.Enabled() = False
        Right.Enabled() = False
    End Sub

    Private Sub LightLED_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LightLED.Click
        Try
            serialport1.DiscardInBuffer()
            serialport1.Write("1") ''Send Value of 49
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub
----------------------------------------------------------------------------------------------------------------------------------
and my "Arduino code"

int data = 0;
void setup()
{
  Serial.begin(9600);

}
void loop()
{
  if(Serial.available())
  {
    data = Serial.read();
  }
  if (data == 49)
     digitalWrite(8,HIGH);
}

its just a simple test program to see if i have "com" assuming that works i can proceed to something more complex
oh and can you explain me wassup with the S1 and S2 that i didnt get quiet well

thank you for your time
11  Using Arduino / Networking, Protocols, and Devices / .vb Application Serial Port thru Xbee on: February 20, 2011, 04:39:34 pm
Hello all

It's my first time here on Arduino Forums so I'm not so sure if this is the right place to post this question, but I hope I can still get some help smiley-grin

I have a .vb application very simple one in which I use Serial Port communication at the same time I have set up my Arduino Mega 2560 with very simple application as well. When I connect the Arduino straight to the the PC using a USB port, I'm able to send the number "1" to the Arduino and have it read and turn on a LED or even move a motor. The communication port from VB to Arduino is good when using the USB port BUT ! here is the problem. I recently bought 2 Xbee modules Series 1 (i know im cheap smiley-lol) a Xbee shield for the arduino  and a USB Xbee explorer for the 2nd Xbee module.

http://www.sparkfun.com/products/9976
http://www.sparkfun.com/products/8687
http://www.sparkfun.com/products/8664     x2

doing some research on the net i was able to make communication between my 2 xbees
using X-CTU Range testing feature on the given program

my Low address, Pan ID. channel. and all that fancy stuff are set right and yet sometimes it doenst work

thats my 1st question why sometimes it doesnt want to make communication between both Xbees

my 2nd and most important question is

When i have 100% good communication based on the Xctu range test, and i try to send the number "1" to the arduino from my VB application , i wont do anything at all,  on the hardware it will show the lights of DOUT blink (when data arrives to arduino) but it wont do any action

in other words , Is there a way to send a "signal" from a VB application (serial port) ----> to Xbee (conected to the USB Xbee explorer)------> wireless ----> to XBee shield ----> to Arduino -----> to the application and make it have some action (using pin from 3-12 btw)

if so can you please help me ? Thank you in advance and sorry if my english not so good smiley-lol >.<

Pages: [1]