User Tools

Site Tools


crs_nijntje_vs_alice

Introduction

This part of the wiki concerns the Product Specification of the “Nijntje to. Alice” product. It describes the main components, behaviour and their interactions.

The “Nijntje to. Alice” product consists of an interactive painting. The basic configuration shows a typical Nijntje scene from Dick Bruna. Flashing LED's add extra atmosphere to the scene. the LEDs can be put in the following groups: stars, fireflies, lantern and the eyes of and Owl.
Separate modules exist, which depict scenes from “Alice in Wonderland”. These modules can be attached and detached from the interactive painting. Attaching a module to a specific place of the scene will modify the behaviour of the LED's.

Mechanical Aspects

The painting shall have the following dimensions: 60 cm width en 45 height. The Painting has the service identifier: ANIN and nomenclature: ASSY, NIJN

The PBA shall have the following dimensions: 10 x 15 zijn The PBA has the service identifier: PNIN and nomenclature: PBA, NIJN It shall contain the connectors for the battery, hall sensor input and LED outputs The PBA shall have 4 mounting holes for M3 bolts. The mounting holes shall have an asymmetrical orientation wrt. each to prevent confusion of the mounting orientation. A mounting hole for an M3 bolt shall have a diameter 3.2 mm. The mounting hole shall remain non-plated.

The main control shall consist of a standard Arduino Duemilanove. Upward compatibilty to Arduino One will not be part of the design. The main control has the service identifier: CNIN and nomenclature: PBA, CONTROL

Firmware and source code for the main control shall have the following nomenclatures:
firmware: FW, NIJN
source code: SRC, NIJN

Electrical Aspects

Power

Batterij

Capacity of one 9 V battery: 450 mAh

Duration before running out: 3 hours. (using 133 mA at full load)

Adapter

Adapter moet makkelijk 200 mA aankunnen.

Inputs

Hall sensor input

On/Off switch

ANIN-S2 connects to PNIN-X2 and shall cut the power from the battery to the complete Assy.

Reset Switch

PNIN-S1: This switch has the same function as the reset switch CNIN-S1 CHeck the schematic of the Waveshield how this is done.

Outputs

Summary

LABEL description function LEDs total (mA)
DIAGLED 1 green LED diagnosis 1 * 2 mA 2
FLYLED[0-7] 8 full colour LEDs firefly / mushrooms 24 * 3 mA 72
LIGHTLED 1 yellow LED lantern of Nijntje 1 * 3 mA 3
OWLLED[0-1] 2 yellow LEDs owl-eyes 2 * 4 mA 8
STARLED[0-19] 20 white LEDs starlights 20 * 2 mA 40
CNIN main control Arduino and control signals 20
total 135

DIAGLED This LED is used for diagnosis purposes and consists of a single green LED. It will be individually controlled by FW, NIJN using a discrete on/off output directly tied to a digital I/O of CNIN. A current source will drive the LED between 0 and 2 mA.

FLYLED[0-7] These LEDs light up the fireflies and mushrooms, it consists of 8 full colour LEDs with and outputs for Red, Green and Blue. This results in 24 outputs for all the FLYLEDs. They will be individually controllable by FW, NIJN using discrete on/off switching. A current source will drive the LEDs with 3 mA. when they're active.

LIGHTLED This LED functions as the flame in Nijntjes lantern and consists of a single Yellow LED. It will be individually controlled by FW, NIJN using a PWM output with up to 32 distinct levels. A current source will drive the LED between 0 and 4 mA.

OWLLED[0-1] These LEDs illuminate the eyes of the Owl in the painting and consist of 2 Yellow LEDs. They will be individually controllable by FW, NIJN using discrete on/off switching. A current source will drive the LEDs with 4 mA. when they're active.

STARLED[00-10] These LEDs light up the night sky and consist of 20 white LEDs. They will be individually controllable by FW, NIJN using discrete on/off switching. A current source will drive the LEDs with 2 mA. when they're active.

The powerLED of CNIN will remain visible in the final assembly. So an extra power LED will not be necessary.

Behaviour

State Nijntje
The main-control shall enter the state Nijntje if MUSHPRSEN has a high level.
STARLED[00-19]: LED produce light continuously
FLYLED[0-7]: The firefly change continuously from colour between Red and Yellow
LIGHTLED: Light flickers continously at analogue levels.
OWLLED[0-1]: Lights are most of the time on. The Owl will blink with the left, right or both eyes ones in a while.

State Alice
The main-control shall enter the state Alice if MUSHPRSEN has a low level.
STARLED[00-19]: LED twinkle at random with most of them (80 %) active most of the time.
FLYLED[0-7]: The LEDs will shine white continuously.
LIGHTLED: The Light is off.
OWLLED[0-1]: Lights are most of the time on. The Owl will blink with the left, right or both eyes ones in a while.

Connectors

Adapter - X1 Batterij - X2

outputs

X4 2×20 header row

01 GND
02 GND
03 -
04 LEDOWL_LFT 4 mA D2-0
05 LEDOWL_POW
06 LEDOWL_RGHT 4 mA D2-1
07 LEDFLY_0_pow
08 LEDFLY_0_R 3 mA D2-2
09 LEDFLY_0_G 3 mA D2-3
10 LEDFLY_0_B 3 mA D2-4
11 LEDFLY_1_pow
12 LEDFLY_1_R 3 mA D2-5
13 LEDFLY_1_G 3 mA D2-6
14 LEDFLY_1_B 3 mA D2-7
15 LEDFLY_2_pow
16 LEDFLY_2_R 3 mA D3-0
17 LEDFLY_2_G 3 mA D3-1
18 LEDFLY_2_B 3 mA D3-2
19 LEDFLY_3_pow
20 LEDFLY_3_R 3 mA D3-3
21 LEDFLY_3_G 3 mA D3-4
22 LEDFLY_3_B 3 mA D3-5
23 LEDFLY_4_pow
24 LEDFLY_4_R 3 mA D3-6
25 LEDFLY_4_G 3 mA D3-7
26 LEDFLY_4_B 3 mA D4-0
27 LEDFLY_5_pow
28 LEDFLY_5_R 3 mA D4-1
29 LEDFLY_5_G 3 mA D4-2
30 LEDFLY_5_B 3 mA D4-3
31 LEDFLY_6_pow
32 LEDFLY_6_R 3 mA D4-4
33 LEDFLY_6_G 3 mA D4-5
34 LEDFLY_6_B 3 mA D4-6
35 LEDFLY_7_pow
36 LEDFLY_7_R 3 mA D4-7
37 LEDFLY_7_G 3 mA D5-0
38 LEDFLY_7_B 3 mA D5-1
39 GND
40 GND

X5 2×20 header row

01 GND
02 GND
03 LEDSTAR_00_POW
04 LEDSTAR_00_RET 2 mA D5-2
05 LEDSTAR_01_POW
06 LEDSTAR_01_RET 2 mA D5-3
07 LEDSTAR_02_POW
08 LEDSTAR_02_RET 2 mA D5-4
09 LEDSTAR_03_POW
10 LEDSTAR_03_RET 2 mA D5-5
11 LEDSTAR_04_POW
12 LEDSTAR_04_RET 2 mA D5-6
13 LEDSTAR_05_POW
14 LEDSTAR_05_RET 2 mA D5-7
15 LEDSTAR_06_POW
16 LEDSTAR_06_RET 2 mA D6-0
17 LEDSTAR_07_POW
18 LEDSTAR_07_RET 2 mA D6-1
19 LEDSTAR_08_POW
20 LEDSTAR_08_RET 2 mA D6-2
21 LEDSTAR_09_POW
22 LEDSTAR_09_RET 2 mA D6-3
23 LEDSTAR_10_POW
24 LEDSTAR_10_RET 2 mA D6-4
25 LEDSTAR_11_POW
26 LEDSTAR_11_RET 2 mA D6-5
27 LEDSTAR_12_POW
28 LEDSTAR_12_RET 2 mA D6-6
29 LEDSTAR_13_POW
30 LEDSTAR_13_RET 2 mA D6-7
31 LEDSTAR_14_POW
32 LEDSTAR_14_RET 2 mA D7-0
33 -
34 -
35 +5V
36 GND
37 +9V
38 GND
39 GND
40 GND

X6 2×20 header row

01 GND
02 GND
03 LEDSTAR_15_POW
04 LEDSTAR_15_RET 2 mA D7-1
05 LEDSTAR_16_POW
06 LEDSTAR_16_RET 2 mA D7-2
07 LEDSTAR_17_POW
08 LEDSTAR_17_RET 2 mA D7-3
09 LEDSTAR_18_POW
10 LEDSTAR_18_RET 2 mA D7-4
11 LEDSTAR_19_POW
12 LEDSTAR_19_RET 2 mA D7-5
13 LEDLIG_POW
14 LEDLIG_RET 3 mA (PWM)
15 S1-POW
16 S1-GND
17 S1-ALEN
18 +9V / S2-RET
19 -
20 S2-POW
29 -
21 LED_SPARE_POW D7-6
22 LED_SPARE_RET
23 -
24 -
25 -
26 -
27 -
28 -
29 -
31 -
32 -
33 -
34 -
35 +5V
36 GND
37 +9V
38 GND
39 GND
40 GND

Costprice

4 layer PB 100 x 130 mm. = 50 EUR
Arduino Duemilanove = 20 EUR
31 LED's = 31 EUR
switch, press = 1 EUR
switch, toggle = 1 EUR
total 103 EUR
crs_nijntje_vs_alice.txt · Last modified: 2015/05/16 14:35 by 127.0.0.1