Author Topic: Wiring S Play Shield Components Question  (Read 2998 times)

0 Members and 1 Guest are viewing this topic.

machocave

Wiring S Play Shield Components Question
« on: February 09, 2012, 10:49:35 PM »
Hi All! I've notice that there's a really cool Wiring S Play Shield, and it doesn't list out the exact specs of the components needed. I'm just wondering if anyone could suggest part numbers for the components either from Digikey, Mouser, Sparkfun, or Jameco. Thanks :)

Here are the components listed at the Robotstore site:
Realtime clock (I2C - DS13x7) with coin cell battery connections
• I2C eeprom for more memory options
• 4 Push buttons
• 6 LEDs

I'm wondering which parts to order for the Realtime clock and coin battery cell connector,
and just wondering which I2C eeprom to order as well, and suggestions for the 4 push buttons would be great too :)

bhagman

Re: Wiring S Play Shield Components Question
« Reply #1 on: February 10, 2012, 09:17:34 PM »
Just a quick list of the components, people can add vendor URLs if they want:

* Switches: SW1 - SW4, Omron standard mini push button switch (B3F)
* * http://www.sparkfun.com/products/97
* * Switch pull-downs: R1 - R4, 10 kOhm up to 47 kOhm

* LEDs: D1 - D6, 3 mm style LEDs - your choice (note: 5 mm LEDs won't quite fit, but you can use them in a pinch)
* * LED current limiting resistors: R5 - R10, depends on your LEDs - typical values: 330 Ohm to 1000 Ohm

* RTC: U1, DS1307, or similar
* * Crystal: 32.768 kHz (Watch Crystal)
* * Battery: Depending on what type of battery you want to use, you'll need to get a battery clip to match.  The board has plenty of options.  Typical: CR2032, clip example: http://search.digikey.com/us/en/products/BS-7/BS-7-ND/389447

* EEPROM: U2, 24xxxx series, e.g. 24LC64, 8K x 8 bit I2C EEPROM
* * http://search.digikey.com/us/en/products/24LC64-I%2FP/24LC64-I%2FP-ND/273427

* I2C Pull-ups (if necessary): R11, R12, typical 4.7 kOhms

ComponentTypical Value
SW1-SW4Omron B3F mini push button
R1-R410 kOhm to 47 kOhm
D1-D63 mm LED
R5-R10330 Ohm to 1000 Ohm
U1RTC, DS1307 or similar
U2EEPROM, 24LC64 or similar
R11, R12I2C pull-ups, 4.7 k Ohm

machocave

Re: Wiring S Play Shield Components Question
« Reply #2 on: February 13, 2012, 03:46:45 PM »
Thanks! That was really helpful :)

MAY2000

Re: Wiring S Play Shield Components Question
« Reply #3 on: April 29, 2012, 08:19:42 AM »
Hi All!
I use Wiring V1.0/Wiring Mini V1.0 @ 16 MHz  and DS1307 - RTC
With this simple code.

Quote
#include <Wire.h>
#include "RTClib.h"

RTC_DS1307 RTC;

void setup () {
    Serial.begin(9600);
    Wire.begin();
    RTC.begin();

  if (! RTC.isrunning()) {
    Serial.println("RTC is NOT running!");
    // following line sets the RTC to the date & time this sketch was compiled
    // RTC.adjust(DateTime(__DATE__, __TIME__));
  }
}

void loop () {
    DateTime now = RTC.now();
   
    Serial.print(now.day(), DEC);
    Serial.print('/');
    Serial.print(now.month(), DEC);
    Serial.print('/');
    Serial.print(now.year(), DEC);
    Serial.print(' ');
    Serial.print(now.hour(), DEC);
    Serial.print(':');
    Serial.print(now.minute(), DEC);
    Serial.print(':');
    Serial.print(now.second(), DEC);
    Serial.println();
   
    delay(3000);
}

and this is the error

sketch_apr29a.cpp: In function 'void setup()':
sketch_apr29a:12: error: error: 'class RTC_DS1307' has no member named 'isrunning'

Thanks for the help
John






bhagman

Re: Wiring S Play Shield Components Question
« Reply #4 on: May 06, 2012, 03:55:18 PM »
Where did you get RTClib from?

I can't understand what's missing if I can't see what's going on in the library.

rei_vilo

Re: Wiring S Play Shield Components Question
« Reply #5 on: July 13, 2012, 09:36:10 AM »
Once the potentially hazardous short being fixed, here is a clock using the Play Shield with a ΅OLED-160-G1(SGC) from 4D Systems.



Thanks to the Serial_LCD Library Suite, 2 lines of codes are required:

• Set and Define
Code: [Select]
uint16_t radius = min( myLCD.maxX()/2-4, myLCD.maxY()/2-4 );
myClock.define(&myLCD, myLCD.maxX()/2, myLCD.maxY()/2, radius);

• Update and Draw
Code: [Select]
myRTC.get();
myClock.draw(myRTC.hour(), myRTC.minute(), myRTC.second());