Russound RNET to Sonos Bridge (Arduino MEGA) – Part 2

by DannyMav @Mavromatic



Overview

While it was possible to use an Arduino duemilanove (Atmel 328 chipset) for this project (See Part 1), He was really limited due to the 2K of RAM. It was fun trying to optimize code to get things to run in that amount of memory, however, it caused me to not be able to expand on functionality and features. He has upgraded the project to an Arduino MEGA (Atmel 1280 chipset). This platform gives him up to 8K of RAM — which should be more than enough memory (famous last words).
A lot of people have asked him to explain what exactly he’s doing with the Arduino. It’s pretty simple. First, He’s using a RS232 shield (not shown) to capture RS232 commands from the Russound Controller. When a key is pressed on the Russound keypads He read the RS232 data and either ignore or react to the events. Currently, He’s looking for +, -, Next, Previous, Play/Pause, Menu events. He plans on using the Menu button to offer deeper content browsing menus (need to sniff the RS232 or wait for Russound to publish protocol). The + & – buttons will allow to scroll playlists and the rest of the transport buttons are self explanatory.

  • Example RNET Next Track Event
F0 0 7D 7 0 0 7F 5 2 1 0 2 1 0 E 0 0 1 7 0 1 2A F7

Since the Sonos is a uPnP based system there is no IR or way to traditionally control it. Everything needs to be done via HTTP calls. He’s using an Ethernet Shield to translate the RS232 events to uPnP messages. The biggest challenge has been parsing the huge amounts of VERY VERBOSE SOAP-based notification messages. He parses the data real time, looking for strings that He want to store (things like playstate and metadata).
To make matters worse, Sonos is URL encoding XML data inside of an XML structure. So writing a simple XML parser is not possible. You have to look for things like &lt; for a less-than bracket (<). There were times I wanted to scrap the whole project because of this due to the limited RAM and string utilities — it really makes things a lot harder to deal with.

  • Example of nested URL encoded XML
&lt;Event xmlns="urn:schemas-upnp-org:metadata-1-
0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-10/"&gt;
&lt;InstanceID val="0"&gt;&lt;TransportState val="PLAYING"/ 

Demo Movie

Learn More

Goto Original


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

Fritz! Boy: Serial communication between Arduino and Gameboy (GBDK)

by Marcel Imig



Overview

This project describes both the communication between an Arduino Mega and a UPNP capable router, as well as the serial communication between Gameboy and Arduino. This is a contribution for the “Pimp your Fritz!” Competition of the Maker Faire 2015 in Berlin. The conditions of participation are here. The finalists are on the site of AVM. The winners at Heise.

Required Component :

  • Gameboy (DMG) oder Gameboy Color 30 €
  • USB 64m Smart card (z.B. von hier) 50 €
  • Gameboy Link cabel 5 €
  • Arduino Mega 15 €
  • Arduino Ethernet Shield 10 €
  • Housing (Optional) 5 € ~100 €

How to Run

After the Arduino Mega microcontroller has received an IP address from the Fritz! Box, it sends a SOAP request to its default gateway. In this query, he queries the properties of the WAN interface and returns the maximum up- and download bandwidth (“NewLayer1UpstreamMaxBitRate” and “NewLayer1DownstreamMaxBitRate”). Next, he intermittently polls the current bandwidth usage every three seconds (“NewByteReceiveRate” and “NewByteSendRate”). The collected values ​​are converted into megabits and transferred to the gameboy every second via the serial interface. A game is played on the game board’s cartridge, which listens on the serial port and displays the last 50 received values on a scale.

Learn More

Goto Original, Language : German


 

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

Teensy-Arduino Cross-over (Adapter) Board

by Epyon.be


Overview

Ever since he discovered the Teensy 3.0 board from PJRC, he is hooked up to it. It’s compatible with the Arduino programming language, but the microcontroller is so much more powerful than a regular Arduino or even the Arduino Due. The only downside is the limited amount of Teensy expansion shields. But what if you could hook up all your Arduino shields to the Teensy? You could then take advantage of both the powerful microcontroller as well as the variety of Arduino expansion shields. That’s why he developed the Teensy-Arduino adapter shield, which does just what it says on the tin: seamless compatibility between the Teensy 3.0 board and Arduino shields

Main Features

  • Drop-in, pin-to-pin Arduino Rev3 compatible
  • Convert between Teensy and Arduino footprints: unlock the wealth of different Arduino shields for your Teensy projects
  • Interface Arduino 5V levels (logic and even analog!) to Teensy 3.3V level: no need to make any change to your existing Arduino projects
  • Bidirectional logic buffers can source up to 50mA per digital output (up from 9mA per Teensy output)
  • Unity gain opamps on analog inputs improve accuracy and speed of analog-to-digital conversion
  • Run your Teensy from any 7-15V DC power supply
  • Select 3.3V logic levels with a simple switch to use your Teensy with 3.3V Arduino shields (in stead of 5V)

Learn More

This post is good reference. For more detail, Refer to the original site.

Goto Original


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

Arduino test sketch & circuit with iOSC

by iOSC


Overview

This project show how to use iOCS Library with Arduino & Ethernet shiled.

This is OSC class library for Arduino and simple test sketching.

OSCclass Arduino library ver1.0.1

  • It is necessary to connect EthernetShiled to Arduino.
  • Connect the iPhone to a Wi-Fi router.
  • Arduino connects with a Wi-Fi router by cable LAN.

  • Please build the Arduino test circuit.

What is iOSC

iOSC is a remote control application that uses the OSC (Open Sound Control) protocol.

Using the OSC protocol over your device’s built-in Wi-Fi connection, iOSC communicates with other compatible hardware and software nodes on your network. You can also remote control the middleware such as Max MSP, Processing, ActionScript (FLOSC) and many other devices that support the OSC protocol from your iPhone.

Refer to Hear

Learn More

Goto Original


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

RGB room Lightingsystem

by Markus Schmied



Overview

The author live in the attic of our House.
Because I often visit friends have had of course something extraordinary!
There are 15 m RGB LED strips to the ceiling. -ca 1000 LEDs. Everything illuminated indirectly!
Screen and blinds are electrically - up and, valid for motors.
Via PC and Smartphone app, he can control everything individually.

Demo video

The Arduino has been made with an Ethernetshield network and communicates well via his home network. The RGB control was expanded from 3 channels to 9. That’s now 3 LED panels can be controlled separately. The Arduino is now supplied with a separate AC adapter and switches to the mains supply via a relay.

Learn More

Goto Original
Goto Translated


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

netBOOT

by Eduardo Zola



Description

The author think this may sound familiar to many… Are you away from home when you suddenly need to access remotely your cameras or any other service hosted in your home, BUT your network/internet at home has stopped responding ? You are exactly in the right project.

To solve that, this device will keep pinging some pre-configured websites (or IP addresses) like google.com, google dns, microsoft, facebook… etc.. and then, when none of them respond to a ping after three tries, a relay cuts off power to the cable modem (or to your router as well) for 10 seconds, then a reboot and new sync with the provider will be done.

This is what you will need to build this:

ARDUINO UNO (or ATMEGA328p Standalone) W5100 ETHERNET MODULE RELAY MODULE

Code is available at www.zolalab.com.br

Demo Movie

Learn More

Goto Original


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

Using the Arduino Ethernet shield with AMICUS18 (Part 1~4)

by HenrikOlsson

저자는 http://www.picbasic.uk 의 Forum에 적극적으로 활동하고 있으며, picbasic의 Forum에서 PIC 기반의 AMICUS18 Open source hardware board에 Arduino Ethernet Shield를 사용하는 방법을 공유하였다. pisbasic에서 그의 Forum 내용을 총 4회 걸쳐 기사화 하였다.


AMICUS18 board

PIC 기반의 Arduino Comapatible board로 Crownhill’s Proton BASIC 언어의 개발환경을 제공한다.


Part 1

Part 1에서는 Arduino Ethernet Board를 AMICU18 Board에 연결하기 위해 SPI 신호 핀을 연결하는 방법을 설명한다.

  • AMICUS18 board는 ICSP HEADER가 없으므로, SD 카드와 Ehternet을 사용하기 위해 Ethernet Shield를 수정하고 연결하는 방법을 설명한다.

[Learn More…]


Part 2

Part 2에서는 PIC MCU의 UART 및 SPI Interface 제어를 위한 코드와 W5100 Memory Map 정의 파일을 설명한다.

  • Code

    ' By default the AMICUS18 board uses the PIC18F25K20, make sure to
    ' set up MCSP or whatever IDE is being used to compile for the
    ' correct device.
    
    DEFINE OSC 64
    DEFINE LOADER_USED 1            ' We're using a bootloader.
    DEFINE HSER_RCSTA 90h           ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h           ' Enable transmit, BRGH = 1
    DEFINE HSER_CLROERR 1           ' Clear overflow automatically
    DEFINE HSER_SPBRG 138           ' 115200 Baud @ 64MHz, -0,08%
    
    SPBRGH = 0
    BAUDCON.3 = 1                   ' Enable 16 bit baudrate generator
    
    TRISC = %10010111
    ' RC7: USART RX
    ' RC6: USART TX
    ' RC5: ETHERNET SPI Data out (SDO/MOSI)
    ' RC4: ETHERNET SPI Data in (SDI/MISO)
    ' RC3: ETHERNET SPI clock (SCK) set to INPUT according to datasheet....
    ' RC2: N/U - currently
    ' RC2: N/U - currently
    ' RC1: N/U - currently
    
    TRISB = %11011011
    ' RB7: N/U - currently
    ' RB6: N/U - currently
    ' RB5: ETHERNET Chip select line to W5100
    ' RB4: N/U - currently
    ' RB3: N/U - currently
    ' RB2: ETHERNET Chip select line to SD-Card
    ' RB1: N/U and can not be used with the Ethernet shield
    ' RB0: ETHERNET Interrupt pin from W5100
    

[Learn More…]


Part 3

Part3에서는 WIZnet W5100 Interface Routine code를 작성하고, 이를 이용하여 Network Information을 설정 후 Ping test를 통해 W5100 Internet 통신을 확인한다.

  • Ping Test

[Learn More…]


Part 4

Part4에서는 WIZnet W5100 Internet 송수신을 위한 Routine을 작성하고 이를 이용하여, Web Client의 Request Message를 UART 출력을 통해 보여준다.

  • HTTP Request

[Learn More…]


[Goto Original Forum]

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

Arduino Nano with Ethernet Shield

by ntewinkel

저자가 Arudino nano board와 Ethernet Shield를 연결했을 때 많은 시행 착오를 한 것 같습니다.
저자와 같이 Arduino nano Board 사용자가 Ethernet Shield를 사용하고자 한다면 좋은 자료가 될 것 같습니다.
저자 역시도 LaydAada나 기타 Open 자료 - SDFatLib - 를 참조하여 작성하였습니다.

또한, 이를 기반으로 Ethernet Shield 대신 WIZ550io를 Test하여 Posting하였습니다.
http://www.instructables.com/id/Arduino-Nano-with-WIZ550io-Easy-Internet/


저자는 Instructable에서 다음과 같이 5단계로 Arduino Nano와 Ethernet Shield를 연결하여 Test 하는 방법을 설명합니다.

  • Step 1: Parts
  • Step 2: Insert Arduino Nano into breadboard
  • Step 3: Plug ICSP of shield onto the Nano
  • Step 4: Connect the wires
  • Step 5: Test the setup

Learn More…

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

Internet of Things.

by James Moxham


James Moxham made this instructable was inspired by This project was inspired by http://www.instructables.com/id/ARDUINO-ENERGY-METER/

This intstructable guides our how to use xively IoT cloud server with WiFi, Arduino Shield and Serial port. In the serial port case, He shows that Xively cloud works with a Visual Basic program on your PC.

Alt Text

He explains his instructable with 6 steps.

  1. The internet of things - smaller, cheaper, less power
  2. A small hack - snap off a pin
  3. Wifi or Ethernet
  4. Talk to the Cloud
  5. Program the board
  6. VB net and xively

Learn More…
Blog : http://drvernacula.topcities.com/


저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

Arduino Ethernet Shield Tutorial

by randofo

The author is introduced himself as the following.

My name is Randy and he runs the Instructables Design Studio. I am also the author of the books Simple Bots, and 62 Projects to Make with a Dead Computer. Since I am always making new things, subscribing to me = fun and excitement!


The author have 256 intstructables and 7000+ follers and, His intstructbles are viewed by 10M+ people. So, He are very famous,activatable, and powerful in the instructables communities.

Here, We introduecded one of his 256 instructable explains to us how to use Arduino Ethernet Shield.

The Arduino Ethernet Shield tutorial explains with the Simplest example of Server & Client. This consists of simple 5 steps as the followings.
1.Setup
2.Shield Feature
3.Start up
4.Server
5.Client


Learn More…

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자