Show Posts
Pages: 1 [2] 3 4 ... 8
16  Using Arduino / Networking, Protocols, and Devices / Re: ATMega1284p using with W5100 Ethernet module on: May 20, 2013, 07:55:57 pm
I have my ATMega1284p on a bread board presently so I was thinking of using male/female jumpers I have to connect my ethershield up and if it works purchasing a w5100 standalone module to use.
17  Using Arduino / Networking, Protocols, and Devices / ATMega1284p using with W5100 Ethernet module on: May 20, 2013, 06:00:14 pm
Hi
Has anyone tried the Atmega1284p running Mighty 16 Mhz opiboot to use a w5100 ethernet module or shield?
Are and devices or limitations I should be aware of using this chip in future projects. I choose it do the vast sram count of 16k and 32 pins for I/o. I have the bootloader installed and loaded the blink sketch which works great.

I appreciate you replies and experience using the ATMega1284p Adruino.
Thanks
Don
18  Using Arduino / Networking, Protocols, and Devices / GSM shield module on: March 27, 2013, 09:01:46 pm
Hi
I was wondering if the new GSM module will operate in the USA ?
I'm not sure about how that sim card works.
Thanks
Don
19  Using Arduino / Programming Questions / Re: Twitter Questions on: March 17, 2013, 07:59:44 pm
Hi
I think you need to read about posting on the forum, and start with the beginners projects and get use to using the Arduino first. When your having a problem with your code you have to insert your sketch  into your post so we can see whats going on we can't read your mind..  Above you will see a button with this symbol on it "#" put you code between the labels "
Code:
  your code here
".

I use the Twitter library and made a copy function to build my character array to pass as a parameter post.
Don
20  Using Arduino / Programming Questions / Re: How to pass parameters to timer interrupt callback methods on: March 14, 2013, 06:16:01 pm
Why not use Timer 1 directly? Set up the registers and add a interrupt handler.
It's pretty easy to do are you looking to use output compare ? what kind of time delay do you need?
Don
21  Using Arduino / Programming Questions / Re: help with alarm code on: March 12, 2013, 07:08:15 pm
I thought you where posting that message to Twitter? Why would you need the serial monitor then?
 
22  Using Arduino / Programming Questions / Re: help with alarm code on: March 11, 2013, 05:41:42 pm
Nick I made that for him to try, when it posts to Twitter that will take a little bit of time 
23  Using Arduino / Programming Questions / Re: help with alarm code on: March 11, 2013, 04:08:10 pm
Try this out there is no debounce of the pin Interrupt 0 is digital pin 2 on the Uno baord
Code:
#include <SPI.h> // needed in Arduino 0019 or later
#include <Ethernet.h>
#include <Twitter.h>

// The includion of EthernetDNS is not needed in Arduino IDE 1.0 or later.
// Please uncomment below in Arduino IDE 0022 or earlier.
//#include <EthernetDNS.h>

//const int ledPin = 3;
int ledState = LOW;

// Ethernet Shield Settings
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

// If you don't specify the IP address, DHCP is used(only in Arduino 1.0 or later).
byte ip[] = { 192, 168, 2, 250 };

// Your Token to Tweet (get it from http://arduino-tweet.appspot.com/)
Twitter twitter("1220261654-BPUYlMFTyfs5ooSFSA62C57Ujeqnr9hdn7PARZm");
// you shouldn't post your token we could post on your Twitter account with this info...

// Message to post


void setup()
{
  digitalWrite(2, HIGH); //turn on internall pullup resistor
  attachInterrupt(0, ExtInt0Fall, FALLING); // there is no debouce of this pin
  delay(1000);
  Ethernet.begin(mac);
  // or you can use DHCP for autoomatic IP address configuration.
  // Ethernet.begin(mac);
  Serial.begin(9600);
  Serial.println("connecting ...");
  char msg[]="que odes";
}

void loop()
{
  if (ledState == HIGH)
    {
      ledState = LOW;
      int cont=0; // ? what is this for??
      Serial.println("High now");   
      delay(1000);
      if (twitter.post(msg))
        {
          // Specify &Serial to output received response to Serial.
          // If no output is required, you can just omit the argument, e.g.
          // int status = twitter.wait();
          int status = twitter.wait(&Serial);
          if (status == 200)
            {
              Serial.println("OK.");
            }
          else
            {
              Serial.print("failed : code ");
              Serial.println(status);
            }
        }
      else
        Serial.println("connection failed.");
    }
}

void ExtInt0Fall()
{
  ledState = HIGH;

24  Using Arduino / Programming Questions / Re: Serial - Issues reading and parsing on: March 09, 2013, 09:08:18 pm
Nicks code wasn't written for your problem. You should read it figure out whats happening and apply it to solve your problem. Try it yourself you have to experiment..
25  Using Arduino / Programming Questions / Re: help with alarm code on: March 09, 2013, 09:04:25 pm
In setup you need to attachinterrupt with some parameters. See link for learn to use that function.
http://arduino.cc/en/Reference/AttachInterrupt
26  Using Arduino / Programming Questions / Re: help with alarm code on: March 09, 2013, 08:54:36 pm
Where is the attacthinterrupt at I see nothing for setting up or handling an external interrupt.
27  Using Arduino / Programming Questions / Re: Serial - Issues reading and parsing on: March 09, 2013, 08:49:02 pm
How many time are we going to cover this topic? Thanks Nick G for providing that awesome example for handling multiple character with serial communications.
Don
28  Using Arduino / Programming Questions / Re: Question using an array on: March 04, 2013, 09:01:45 pm
I didn't realize there is special read functions to fetch values from flash memory.
I work on that thanks guys.
29  Using Arduino / Programming Questions / Re: Question using an array on: March 04, 2013, 07:51:24 pm
Thank for your reply Nick.
I changed those arrays too below and the library still operates perfectly.

Code:
#include <avr/pgmspace.h>

prog_uchar rxPins[] = {5,6,7,8,9,10,11};
prog_uchar cdPins[] = {21,20,19,18,02,03};

30  Using Arduino / Programming Questions / Question using an array on: March 04, 2013, 06:34:31 pm
Hi
 I have an array of pin numbers they are part of a library and I'm using them with interrupts
External Interrupts and with Timer 3 output compare. I have declared the array as volatile I was wondering if I could put this array in flash memory since it the values never change? How would I do that inside a library? I'm using the values stored for digitalWrite and digitalRead. It works as I have it just fine but I'm wasting 12 bytes on sram do it the way I have below I'm using the 2560 board.
Thanks
Don

Code:
// variable used by interrupts
volatile uint8_t eomFlag = 0;
volatile uint8_t rxPins[] = {5,6,7,9,10,11};         // would like to put in flash memory
volatile uint8_t cdPins[] = {21,20,19,18,02,03};  // would like to put in flash memory

Pages: 1 [2] 3 4 ... 8