Show Posts
Pages: 1 [2] 3 4 ... 72
16  Using Arduino / Project Guidance / Re: IR Remote functionality on: April 12, 2014, 01:53:35 am

There's heaps of info available right from the source of your boards.  Aside from the tutorials on those product pages, they have this very good article about iR communicaton with Arduino.  If you're still up for more reading, there's also a heap of goodness at Adafruit that takes you right from the very basics.

All the best with your project - Geoff
17  Using Arduino / Project Guidance / Re: How to program a CAN-BUS arduino shield to control the car's headlights? on: April 11, 2014, 09:51:56 pm

Are you sure your car controls its headlights using CAN bus?  I'd heard of bulb failure detection using CAN bus so are you sure your car has that capability to tap into?  If your car doesn't have an OBD-II connector is it new enough to be running a CAN bus system?  If not, a simpler method using MOSFETs to control the headlights is possible.

Cheers ! Geoff
18  Using Arduino / Project Guidance / Re: Google drive + Wifi shield on: April 11, 2014, 09:45:31 pm

I can see where the article might create a bit of confusion as the Processing environment (running on the PC) uses the same terminology in a lot of cases (eg calling programs "sketches") as the Arduino environment.  There's a good reason for that being Arduino's IDE and programming language while a flavour of C, is actually developed from Processing.  If you load Processing you'll immediately feel at home in the very familiar looking IDE as a consequence smiley

That article is not talking about anything on the Arduino that I can see.  It mentions a previous article where sensor readings from a light sensor are reported serially to the PC into Processing.  From that point, the story is all about setting up Processing on your PC to write to a spreadsheet on Google drive, not doing so directly from Arduino.

Java libraries aren't useful in your Arduino sketch, so you'll need to do all those steps on a connected PC.  Alternatively you could do it with a small embedded system like a Raspberry Pi attached to your Arduino to keep the size & power consumption down.

Hope that makes senses, cheers ! Geoff
19  Using Arduino / Project Guidance / Re: GARDUINO with Ethernet Shield on: April 11, 2014, 09:30:06 pm

The problem doesn't appear to be timing.  Your Water() function never checks to see if the plants are sufficiently watered.  It continues to test the same value in moisture_val without updating moisture_val with another analogRead().  Water() needs something like this:
void Water() {     
//    if (moisture_val>260){  <- test used to say this
    if(analogRead(moistureSensor)>260) {
    } else {
      Serial.print("Moist Ok");
Hopefully this will help your future water bill  smiley

Cheers ! Geoff
20  Using Arduino / Project Guidance / Re: Bluetooth Problem on: April 11, 2014, 09:10:49 pm

If you send characters to the bluetooth module when not in setup mode does the Arduino receive them?  If so, can you include your code in your next post so we can see what you're doing on that side?

21  Using Arduino / Microcontrollers / Re: ir library not working on stand alone mode on: April 10, 2014, 07:32:32 pm
Great to to see. All the best with your project! Geoff
22  Using Arduino / Microcontrollers / Re: ir library not working on stand alone mode on: April 09, 2014, 05:33:20 pm
What might be other possibilities of error ?
It seems like you found the source of the issue.  Just get the timing issue sorted with a functional 16MHz crystal or resonator and it should be perfect.

Of course you need to remember to set the fuses internal to the ATmega to get it to expect and use the correct clock signal source.  This is done by choosing the "load bootloader" option in the IDE and having a target board selected that uses that clock source - in your case Uno.  If you have loaded the bootloader for Uno (say) and you're using a different clock source (other than 16MHz) your timing will be out.  Timing is everything in this application.

Cheers ! Geoff

Edit: added note on fuses
23  Using Arduino / Microcontrollers / Re: [Q] Firmata on ATTiny85? on: April 08, 2014, 07:59:35 am
I only mentioned Digispark since it was based on the uC you mentioned specifically.  There's no confirmation Firmata has been ported to run on that platform yet, at least that I could find.

You could start with an Arduino Pro Mini or similar for a very low cost, not much more than a standalone microcontroller.but gives you a complete and working Arduino for under $USD5 delivered, plenty around that price point on eBay based on ATMega328.  You'll still need a USB converter (FTDI breakout say) to talk to your PC.  They're about that same price - so around $USD10 all up. 

At least you know Firmata will work on Arduino via the library.

Cheers! Geoff
24  Using Arduino / Microcontrollers / Re: ir library not working on stand alone mode on: April 07, 2014, 05:34:38 pm

Have you tried adding serial debugging to your code to see if it is still interpreting the iR signals (but the LEDs are not firing) or if it's not seeing the iR signals entirely?  Are you seeing the default LED display from your switch/case every time?

If you add an LED between the output and VCC pins on your TSOP receiver does it flash when the iR signal is received (to eliminate the possibility your sensor has failed)?  This Adafruit article shows how.
Ok I got it. Thanks! Now comfortably examine the code and please tell the solution. I'm here for solution !!
If it worked on the Uno, the problem is less likely to be in your code.  Have you tried a simple test sketch to flash the LEDs to ensure they all function and that your standalone is actually working (and working at the correct clock speed)?  Setup a flash at 1sec intervals to ensure that what you see is running correctly.  If they're flashing slower, the chip may still be running on its internal clock rather than the external crystal - indicating you need to set the internal fuses still.

Lots of options here.  Lets' remove the obvious ones and let us know how you go.

Cheers ! Geoff

Edit: added adafruit link
25  Using Arduino / Microcontrollers / Re: Arduino Uno R3-Compatibles with more memory on: April 06, 2014, 08:47:04 pm
The Goldilocks by Phillip Stevens and available via Freetronics was such a product.  Initially a crowdfunded project, it's been recently retired and they're working on the next iteration (link to foum post asking for feature suggestions). 

Sorry it's not an immediate solution.  From that forum thread you'll see a post from Phil regarding his latest project which is a derivative of Goldilocks with stereo DACs which is soon to be a crowdfunded release.  Perhaps that could be of use?

Alternatively have you considered putting a standalone ATMega328P on a shield and offloading some of the tasks to that microcontroller with comms to the Arduino ?

Cheers ! Geoff
26  Community / Exhibition / Gallery / Re: Custom RC transmitter on: April 06, 2014, 07:37:31 pm
Thanks for sharing this.  You've added a layer of realism without adding complexity which is quite a feat.

Cheers ! Geoff
27  Using Arduino / Microcontrollers / Re: attiny wired to pot input, but what if i use "pinMode(ButtonPin, INPUT_PULLUP)" on: April 06, 2014, 07:32:17 am

Something I've used before is a state machine, where you store the current state (in your case menu location) in the onboard EEPROM and use the reset on the ATTiny85 as your switch pin. In this case the each time the ATTiny restarts it will need to know where it was in the menu earlier, so it can act on the reset as a button press.  Just have your pot on the other input therefore as before.

I published a trivial example in this post where the reset was used as the sole control for a bathroom shower timer.  Hopefully that example will illustrate what I mean, and this helps.

Cheers ! Geoff
28  Using Arduino / Microcontrollers / Re: [Q] Firmata on ATTiny85? on: April 06, 2014, 07:22:18 am
That's a great question.  I've not seen it anywhere either - there was this thread in the DigiStump forum which mentioned it.  Digispark is ATTiny85 based.  It sounds promising, but was still only theoretical rather than saying it had been done.

Cheers ! Geoff
29  Using Arduino / Microcontrollers / Re: problem with pwm on: April 06, 2014, 04:58:42 am

The command you're looking for is analogWrite(pin, value) (link to reference page).  That outputs a PWM signal with a defined duty cycle to the specified pin.

How you utilise it in your code will depend on the motor controller you're driving your motor(s) with.

Cheers ! Geoff
30  Using Arduino / Microcontrollers / Re: ATmega 328 project?? on: March 29, 2014, 05:16:51 am
Hi lindhoutd, you can do what you need with what you're suggesting.  The richness of the Arduino ecosystem means there's rarely just one way to get to your destination.  For some the Arduino made for breadboards would be a Uno and a Protoshield with a breadboard on it.

I agree with PaulRB that it's a matter of preference, but in the end we all end up collecting the whole set smiley-grin 

Welcome to the community lindhoutd!
Pages: 1 [2] 3 4 ... 72