Show Posts
Pages: [1] 2
1  Using Arduino / Interfacing w/ Software on the Computer / Read And Write Values from/to Arduino with Visual Basic 6.0 on: October 22, 2011, 02:19:49 am
Hello Friends,
I want to read the values from LM35 connected to pin 0 on arduino in VB 6.0. I have searched for the programs and similar problems but found none as suitable for my concern.
I am able to read the values from Serial Port in Arduino Serial window. ANd thus want to read the values in VB and with a click of "CommandButton" (In VB) is wish to turn on the Led on the pin no 13.
Will you please guide me how to do so?
MY VB code:

2  Using Arduino / Interfacing w/ Software on the Computer / Re: Windows VB-Arduino Uno application: Will it run on MAC with a virtual windows PC on: October 22, 2011, 02:08:35 am
Yes, all you need is to enable the USB port on Virtual box (machine) and the install the driver in the Windows OS. Check the Communication port engaged by arduino.
ANd go ahead with easy programming. (I case you know how to work with ports.) I am bad at it.
3  Using Arduino / Motors, Mechanics, and Power / 6 Wire Stepper motor, NMB-MAT PM42S-048 on: February 17, 2011, 12:47:33 am
I am having a 6 wired stepper motor, NMB-MAT PM42S-048 which i am trying to connect to Arduino. I searched for data sheets but wasn't able to find any related help. All i got was the 4 wire having different wire color code details. I am confused and not able to understand how i can control it.
CAn you please guide me, how can i do it so?
4  Using Arduino / Sensors / Re: How to Interface Arduino with Zilog ePIR Motion Detector. on: February 03, 2011, 12:34:32 pm
I haven't tried using the library but downloaded it and did the pin connection as per given in it. And I am trying to start it in Serial Interface mode, since i think using with arduino i will need to use it with serial only.
And one more thing i would like to make note of is: I am using only 1 Resistor i.e. 100k from PIR pin 4 to 3v3 as pull up. Is there requirement for any more resistor?
When i do the arrangement of schematic as stated, i see the led ON even when motion is not detected and I have noticed that, the led remains ON when i am connecting any pin to Motion Detect mode pin i have set up on arduino. (Here is am using arduino digital pin 3 for MD.)
LDR basically acts as the controller for ambient light, but i am trying it doing in dark or in different light conditions. Still I am facing the problem.
5  Using Arduino / Sensors / Re: How to Interface Arduino with Zilog ePIR Motion Detector. on: February 03, 2011, 02:17:16 am
Frankly speaking, i am using this sensor, since i found it in my garage. I am interested in interfacing it, and look how it works.
I have google'd for the posts related but i found vague information. I need a bit more lucrative information. And the library which you have addressed, is providing me sufficient data, but i am confused right now.
Can you please give me some more information on the connection in detail. As you have used them, will you provide me the schematic data and code?
6  Using Arduino / Sensors / How to Interface Arduino with Zilog ePIR Motion Detector. on: February 01, 2011, 02:46:22 am
I am trying to interface Arduino with Zilog ePIR motion detector. Here is the data sheet:
As per prescribed on Pg.56 fig.13 on the datasheet, i did the following connection:
PIR pin 1 --> Arduino GND
      pin  2 -->              3v3 (vcc)
PIR pin 1 GND --> Arduino PINS:  GND
      pin  2 VDD -->                        3v3 (vcc)
      pin  3 RXD -->                        TX  Pin1
      pin  4 TXD -->                        RX Pin0 + 100k Resistor to 3v3.
      pin  5 RST -->                        Pin 2
      pin  6 LG  -->                        100k resistor + photodiode to gnd to VCC i.e. 3v3
      pin  7 SLP -->                         Arduino Pin 3
      pin  8 GND -->                         GND

The code I have used to sense the motion is:
int ledPin =  13;    // LED connected to digital pin 13
int pirPin = 2;
int motion = 0;

void setup()   {               
  pinMode(ledPin, OUTPUT);
  pinMode(pirPin, INPUT);

void loop()                     
  motion = digitalRead(pirPin);
    if (motion == HIGH) {
      digitalWrite(ledPin, HIGH);
    } else {
      digitalWrite(ledPin, LOW);
I face the following problem:
When I upload this program on Arduino Duemilanove, it turn the led on pin 13 ON all the time. Where as, it should be on only when there is motion in front of the sensor.
Where am I going wrong?
Thank you.
7  Forum 2005-2010 (read only) / Troubleshooting / Re: does anything can transform sq. wave to sine? on: March 12, 2010, 07:22:17 am
You can use opamp IC741.
8  Forum 2005-2010 (read only) / Troubleshooting / Re: HOW TO BURN BOOTLOADER ON ARDUINO SERIAL BOARD. on: March 14, 2010, 07:12:22 am
Cr0sh, I guess I'll get comfortable with the Arduino Hardware within this Week.
I got exams till Saturday and as soon as my exam gets over, I'll run to the market and get my FTDI Breakout board and one AtMega 168 or Atmega328.
This time I am pretty confident that I wont mess up much. I have tried building up two boards and to my knowledge of soldering and component handling was pretty right.
Today I am feeling much comfortable just because I found a cheaper breakout board for $8 only and it is available in my city itself.
Earlier I was thinking of removing Arduino outta my mind and getting with Sanguino. But, I need no much memory and power until i begin with real hardware. I was going mad after Serial just for the reason that it made the whole support simple in $1 itself.
I have some theory in my mind:
1) Build the arduino that only has I/O pins, ICSP, Power Input Battery/Adapter pin.
2) Program the Arduino with FTDI breakout board and bootload with FTDI Bit Bang (I don't know whether it'll be simple).
Hope my theory works!
9  Forum 2005-2010 (read only) / Troubleshooting / Re: HOW TO BURN BOOTLOADER ON ARDUINO SERIAL BOARD. on: March 13, 2010, 03:33:41 am
My arduino is built on breadboard/projectboard. So unmounting 7805 wont be a big problem. Also i checked the power adapter it was dlink 9v. I only have two external pins, one is serial rs232 whose pin #2 and 3 are for rx /tx and 5th pin is grounded. The second one is power adapter pin. What i wish to know now is, how can i know whether my arduino is working? I havent programmed the bootloader in my atmega168.  so how can i start my programing from bootloader to normal program.
10  Forum 2005-2010 (read only) / Troubleshooting / Re: HOW TO BURN BOOTLOADER ON ARDUINO SERIAL BOARD. on: March 13, 2010, 02:08:44 am
Yeah i applied the voltage to voltage regulator via adapter. I think i havent fried the atmega. Frankly speaking i have no idea whether the mcu got burnt. Now i need to work and find out the methods of starting  my arduino.
11  Forum 2005-2010 (read only) / Troubleshooting / Re: HOW TO BURN BOOTLOADER ON ARDUINO SERIAL BOARD. on: March 12, 2010, 10:30:59 pm
Thank YOU very much for your kind advice. I respesct your words. Well I had seen that there was SCR kind of arrangement between ATmega and DB9 with pnp-npn transistors, and few resistors and diodes. So i thought there was no need of buffers between CPU and DB9. I read about voltage limit for ATMega that were around 12V max. I guess I mìght have gone wrong over there, considering as RX TX Voltage. In fact i didnt applied voltage to serial port. I wholeLY POWERED up the arduino.
12  Forum 2005-2010 (read only) / Troubleshooting / Re: HOW TO BURN BOOTLOADER ON ARDUINO SERIAL BOARD. on: March 12, 2010, 01:28:03 pm
Well, it seems I've already done the work of frying!
Now I'll try to move to Duemilanove. And possibly use FTDI. Way before it, I would like to ask, Can i prepare Duemilanov without SMD?
Also, can i get FTDI chip in DIP? Or else can I mount the SMD package on some smd holder? With Ftdi can i burn bootloader directly or maybe with some hack that wont require any external programmer like Avr MKII OR Etc. ?
13  Forum 2005-2010 (read only) / Troubleshooting / HOW TO BURN BOOTLOADER ON ARDUINO SERIAL BOARD. on: March 12, 2010, 05:58:58 am
Hey mates, i am a beginner and have just built my serial port based arduino on breadboard. Now i am finding a problem with my arduino. I have attachd db9 serial female port connecting RX & TX PINS. Connected a 2.1mm power adapter pin for input voltage. THUS, with this basic arrangement i began to connect female serial to male port of my pc and provided 4.8v input with adapter. i started off my pc and during welcome screen the green LEd glow or blinked 2 times. after this moment the led never blinked. i attached 9v,12v adapter but it didnt showed me any signs of life. I'VE used ATMega168 40pin microcontroller. Now i wish to know, 1.Does ATmega168 with 40pin work with arduino? 2.How can i burn bootloader without FTDI. 3.Is there any serial programmer? THANK YOU.
14  Forum 2005-2010 (read only) / Interfacing / How to Interface Electrate - Condenser Microphone on: January 12, 2011, 09:41:00 am
Hey Guys,
I am trying to use Electrate - Condenser Microphone as sound sensor which can help me acting as a switch for turning on LED.
The project is like Clap Switch. Would you please tell me how to interface it?
I tried searching on Arduino but couldn't find the answers.
My hypothetical algorithm is:
1)Use Pin Analog Pin # 0,1 as input for the sound.
2)Connect a LED to Digital O/P Pin #2,3.

So what will be the program as per the basis.?
Thank You.
15  Forum 2005-2010 (read only) / Interfacing / Re: Interfacing LDR with Arduino? on: December 06, 2010, 10:36:57 am
Here's the Code for LDR
/* This is program to make a photoresistor act as a light sensor.
It will turn the buzzer on when the light is not falling on it
and it will turn the buzzer off when the light is present on it. */

int LDR = 0;       // select the input pin for the LDR
int ledPin = 11;   // select the pin for the Buzzer. NOTE: I havent changed the integer 'ledPin' for Buzzer. You can put anything.      
int val ;

void setup() {
  pinMode(LDR, INPUT);       // declare the LDR as an INPUT
  pinMode(ledPin, OUTPUT);  // declare the Buzzer as an OUTPUT

void loop()
  val = analogRead(LDR); //Reads the LDR value and stores in variable 'val'
  if (val > 1000)    // This is the Treshold value of LDR. Try changing it according to your needs.
    digitalWrite(ledPin, HIGH); // It will turn the buzzer on when the light is restricted.
    digitalWrite(ledPin, LOW); //It will turn off the buzzer then the light is falling on it.
Pages: [1] 2