Show Posts
Pages: [1] 2 3 ... 83
1  Using Arduino / Programming Questions / Re: Understanding Code on: Today at 12:16:01 pm
Quote
So is it correct to say you dont need the wire library if the lcd i2c library takes care of these commands.
You still need the Wire library as the liquid crystal library uses it (calls wire functions).  You still need to include the Wire library.  Try not including it to see.  To see what the functions and required function parameters are for a library, look at the header (.h) file.  All member functions for that library (class) are declared there.  The .cpp file has the member function definitions, ie the guts of the functions.
2  Using Arduino / Project Guidance / Re: communication with a digital scale on: Today at 10:55:34 am
Arduino serial defaults to 8 bit.  The scale is 7 bit.  Have you tried to change either Arduino serial or scale serial so the data bits match?
3  Using Arduino / General Electronics / Re: Using Arduino to turn power supply on and off on: Today at 10:04:42 am
Quote
container plus 2 L7805.
Replacing those with a more efficient  switching regulator would go a long way towards reducing the heat generated in the enclosure.
4  Using Arduino / Programming Questions / Re: problem with using interrupt on: Today at 09:58:47 am
How is the button wired?  Do you have a pull down resistor?  Are you debouncing the button?  Without debounce the button will generate several interrupts with each press.  Try the circuit below for your button.  It is the accepted way to wire a button.  You need to modify your code to look for a high to low transition.   That said, you would be better off not using interrupts for your program.  Polling the state of the button each time through loop() would read it plenty fast.
5  Using Arduino / Sensors / Re: HC-SR04 Measurement Sensor Outdoor on: Today at 09:38:58 am
You would need the data sheet for the sensor and transmitter on the HC=04 to be able to compare the specs.  It may be easier to find a rangefinder like  used in automobile back up alarms that is made to be use in harsh outdoor environments.
6  Using Arduino / Programming Questions / Re: problem with using interrupt on: Today at 09:24:04 am
Interrupt 0 is the external interrupt connected to pin 2.  What do you have connected to pin 2 that will cause a low to high transition on that pin?
7  Using Arduino / Programming Questions / Re: Understanding Code on: Today at 09:21:37 am
Quote
Why do we not use wire.write for the LCD screen?
The wire commands that you use for the RTC are in the liquid crystal library(s).  When you do a lcd.print() the library code addresses the lcd, transmits  the data and ends the transmission.
8  Using Arduino / Project Guidance / Re: Motor Driving on: Today at 09:12:59 am
http://www.robot-electronics.co.uk/htm/md03tech.htm  seems pretty comprehensive. 
9  Using Arduino / General Electronics / Re: hobby servo motors on: August 29, 2014, 09:19:56 pm
Once the servo reaches its commanded position the motor will turn off and remain off until something tries to move it or it gets a new command.
10  Using Arduino / Project Guidance / Re: Sending IR Commands via Analog on: August 29, 2014, 03:23:45 pm
Do you mean to send the IRcommands directly, through a wire, bypassing the IR LED and receiver? 
11  Using Arduino / Project Guidance / Re: My house alarm circuit problem ! Someone please read this and help on: August 29, 2014, 12:58:23 pm
The way to approach a project like your is to break it into small parts.  Get an Arduino and learn to upload example sketches.  Get a LED and learn to blink it.  I interface a button switch.  Each bit that you do will give knowledge to do the next bit.  Look at the examples included with the IDE.
12  Using Arduino / Programming Questions / Re: Attiny85 PWM and integer question on: August 29, 2014, 08:47:59 am
200-int=  So 200-150=50, 200-50=150.
13  Using Arduino / Project Guidance / Re: Guidance for temperature control project on: August 28, 2014, 06:16:33 pm
What is the coil current requirement (or the coil resistance)?  One of those specs should be  listed on the relay.  It really sounds like you are pulling the supply voltage down.  Can you measure Vcc with the relay energized to see if it falls?
14  Using Arduino / Project Guidance / Re: Guidance for temperature control project on: August 28, 2014, 05:05:37 pm
How are you driving the relay? Can you provide a schematic of your connections?  Is there a diode across the relay coil?
15  Using Arduino / Programming Questions / Re: Variables - Convert 16 bit into 2x 8 bit and vice versa on: August 28, 2014, 04:08:03 pm
There are also  the highByte and lowByte functions.  Look in the reference.
Pages: [1] 2 3 ... 83