Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Networking, Protocols, and Devices / Re: [HowTo] I2C communication between a RPI (master) and a Arduino (slave) on: April 07, 2013, 04:10:06 pm
Thanks for the reply, I fixed the title.
2  Using Arduino / Networking, Protocols, and Devices / [HowTo] I2C communication between a RPI (master) and a Arduino (slave) on: April 05, 2013, 03:37:08 am
Hey

I needed to send data from a RPI to an Arduino using I2c and wrote a little tutorial how to do it:

http://neophob.com/2013/04/i2c-communication-between-a-rpi-and-a-arduino/

the tutorial also covers i2c speed and i2c buffer size. hoper you like it, cheers
michu
3  Using Arduino / Networking, Protocols, and Devices / [HowTo] Serial communication between Raspberry Pi and Arduino on: January 30, 2013, 06:25:38 am
Hey

I wrote a little tutorial that explains how to communicate between an Arduino and RPI via serial line and make your (old) Arduino board network enabled.
http://neophob.com/2013/01/serial-communication-between-raspberry-pi-and-arduino/.

I hope that helps someone, cheers
Michu
4  Community / Exhibition / Gallery / Arduino Theft Protection on: January 05, 2013, 05:30:25 pm
Hey guys

I did a quick theft protection project this evening, it's simulate a running TV. I hope you like it:

http://neophob.com/2013/01/arduino-theft-protection/

Cheers
5  Topics / Interactive Art / Stage Design application on: November 07, 2012, 04:51:11 pm
I created a Arduino/Processing combo to control eight 80cm high wooden letters filled with 110 Led modules. Those letter are used as stage design for some friends which founded a band.

I created a blog post about the whole project at http://neophob.com/2012/11/kalikut-now-stage-design/. I released the whole code on GitHub.

Hope you like it.

Cheers
Michu
6  Using Arduino / Networking, Protocols, and Devices / Arduino send WOL message on: August 31, 2012, 05:24:41 pm
hey guys

I try to send a Wake on LAN "Magic Packet" with my Arduino Ethernet. This "Magic Packet" is quite easy, 6 x "0xff" then 16 x the mac address, so the payload should be 102 bytes (raw data, without headers). My captured packet is only 38 bytes large, I guess the SENDING buffer is limited.

Here is the code I use:
Code:
byte broadcastAddress[] = { 255, 255, 255, 255 };    //to verify!

//send wol magic pajet
void WOL(byte mac[]) {
#ifdef USE_SERIAL_DEBUG
  Serial.print("Send WOL... ");
#endif
  
    byte i;
    //Starts a connection to write UDP data to the remote connection, parameter: remoteIP, remotePort
    //Hint about port 7: Since the magic packet is only scanned for the string above, and not actually
    //parsed by a full protocol stack, it may be sent as any network- and transport-layer protocol, although
    //it is typically sent as a UDP datagram to port 7 or 9
    Udp.beginPacket(broadcastAddress, 7);
    
    //Writes UDP data to the remote connection. Must be wrapped between beginPacket() and endPacket().

    //Start of WOL magic paket (preamble)
    for (i=0; i<6; i++) {
      Udp.write(0xff);
    }
    
    //the wol packet contains 16 times the mac address
    //NOTE: BUG here, we cannot send more than 46 bytes...
    for (i=0; i<16; i++) {
      Udp.write(mac, sizeof mac);
    }
    
    //Called after writing UDP data to the remote connection.
    Udp.endPacket();
#ifdef USE_SERIAL_DEBUG
  Serial.println("done!");
#endif
    
}

I took a look at the EthernetUDP class, all I found was a
Code:
#define UDP_TX_PACKET_MAX_SIZE 24

which is a bit unrelated I guess. Can someone help me?

Cheers
7  Using Arduino / Programming Questions / Re: Odd compiler error? on: August 29, 2012, 03:38:38 pm
pff I just found the solution seconds after this post

g was declared like this:
Code:
unsigned int g;

and I guess this addition will overflow the unsigned int:
Code:
g=(g*mulCol + g2*oppositeColor) >> 8

I fixed it with:
Code:
  g=((g*mulCol)>>8) + ((g2*oppositeColor)>>8);

However I have NO clue why it works in my previous project (https://github.com/neophob/ExpeditInvaders/blob/master/Arduino/firmware/ColorSet.ino)...
8  Using Arduino / Programming Questions / Re: Odd compiler error? on: August 29, 2012, 03:28:59 pm
Hmm I got the same error, using Arduino IDE v1.0.1 on OSX:

Thats the line
Code:
g=(g*mulCol + g2*oppositeColor) >> 8

The error is a asm error when using the movw instruction... The funny thing is, I use this code in another project without a problem, I reuse this piece of code and this bug hit me... any hints?

Used Version:
Code:
bash-3.2$ /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ --version
avr-g++ (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash-3.2$ /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc --version
avr-gcc (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9  Community / Exhibition / Gallery / ExpeditInvaders, a glowing shelf you can control with your foot! on: August 09, 2012, 01:05:25 pm
Hey guys

I just finished my project "ExpeditInvaders", I hacked my Expedit Ikea shelf! I added 40 LED modules to it and glued a keyboard on the bottom of the shelf. Now I can change the colorset or animation with my foot!

Links:
Blog entry: http://neophob.com/2012/08/expeditinvaders-the-spiced-up-ikea-shelf/
Flicker: http://www.flickr.com/photos/pixelinvaders/sets/72157630988401736/
GitHub: https://github.com/neophob/ExpeditInvaders

I hope you guys like it, if you have questions I'm glad to answer them.

Cheers
Michu
10  Development / Other Hardware Development / IBoard from iteadstudio as Arduino Ethernet replacment on: June 09, 2012, 02:06:10 pm
Hey Guys

I just tested the IBoard as Arduino Ethernet replacement. The board cost a bit more than half the price of the Arduino Ethernet and works fine, if you don't need any shields. I wrote down my findings on a blog entry:

http://neophob.com/2012/06/make-stripinvaders-cheaper-use-an-iboard/

Hope you like it!

Cheers
11  Community / Exhibition / Gallery / Re: StripInvaders, a LED Strip controlled by your Smartphone on: February 01, 2012, 03:26:28 am
And here is the whole assembly process:
12  Community / Exhibition / Gallery / Re: StripInvaders, a LED Strip controlled by your Smartphone on: December 21, 2011, 05:52:50 am
I created a short video:
13  Community / Exhibition / Gallery / StripInvaders, a LED Strip controlled by your Smartphone on: December 14, 2011, 06:04:55 pm
Hey guys

I use an Arduino Ethernet to control my 5m LED Strip. I use OSC to control StripInvaders, there is DHCP support, mDNS/Bonjour support included. Currently there are 9 different modi available, I plan to add more. However, the firmware is more than 30'000 bytes large.

I posted more details at http://pixelinvaders.ch/?page_id=396.

What do you think? I'm looking for more modes, just if you have some spare time smiley-wink
14  Using Arduino / Installation & Troubleshooting / Arduino Ethernet, how to connect a Shield on: December 07, 2011, 04:04:44 am
Hey guys

I just bought an Arduino Ethernet and a Shield. However I cannot connect the Shield to my Arduino because the RJ45 Connector is too large!! Any hints how to connect a Shield to an Arduino Ethernet?

Thanks
15  Using Arduino / Installation & Troubleshooting / Update Arduino Ethernet Optiboot on: December 01, 2011, 05:07:23 pm
Hey guys

I just received my Arduino Ethernet today and tried to upload a Sketch. After some research I found out that updating the Optiboot Firmware should uploaded to v4.4, according to this document: http://scuola.arduino.cc/en/content/upgrade-arduino-ethernet-bootloader-latest-version

I use Arduino 1.0 on OSX (I just replace the Wprogram.h with Arduino.h), I uploaded the Optiboot Sketch to the Arduino Uno, connected both Arduinos together, verified the serial output, like in the tutorial.

However if I verify the firmware (./avrdude -c arduino -p m328p -P /dev/tty.usbmodem411 -C ./avrdude.conf  -vv) i get this output:


Code:
avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 3.3
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

So the update failed, but I dont know why... any hints?

Pages: [1] 2 3 4