Construction and animation of a Creole Case
This
file concerns the construction then the animation of a model of a colonial
house using 3 B4X applications
To summarize, it's
about controlling a small house via the Bluetooth system of your Android
Smartphone
Construction and electronic equipment of the Creole
house
Test using this servomotor
to open and close a door
Material
and components used
The list below is only a suggestion and of
course other choices can be made according to your needs and possibilities.
+
=
As this model of small servomotor cannot be
found, I recommend replacing it with the XICOOLEE SG92R model which is
perfectly suited for this use.
Test
of using this small, very efficient servomotor to ring a small bell
AND
OR
AND
- 1 Arduino MEGA2560 card or compatible
- 1 HC05 Bluetooth module installed on a quarter
connection plate (+ three 1 Kohm resistors to protect it)
- 2 MG 996 R servomotors with accessories (Arms
extended by a small metal bar + adjustable length links)
- 1 SM-S2309S or XICOOLEE
SG92R mini-servomotor and a bronze bell
- A buzzer, internal ringing device (replacing the
Mini-Servo + Bell set)
- Power supply 1 >>> One 9 Volt pressure
battery AND a cord with pressure connections for the 9 Volt battery
- Power supply 2 >>> Two rechargeable LI-ION
batteries (3.7 volts x 2 = 7.4 volts) AND a box to connect the 2 batteries
>>> preferable solution after experimenting with both systems
- A general switch to supply or cut off the system
with 9 Volt current
- A male Jack plug to connect into the appropriate
socket on the Arduino card (or connect to the VIN pin)
- Micro-switch (optional) to manually trigger the bell
ringing
- Bright white or colored LEDs depending on your lamp
projects
(If the LEDs are not already protected from overvoltages by resistors, plan to do so with a resistor of
220 ohms per LED)
- Mini-floor lamps (Please note, this product is not
protected by a resistor, so the internal white LEDs will not support 5 Volts,
protection by one or more 220 Ohm resistors must be provided.)
- Plastic straws intended to transform a mini-floor
lamp into a facade wall light...
- Mini hinges with small matching screws
- Rigid red, black, white, yellow, green, blue wires
to connect components with the Arduino card and/or solderless connection plates
- Mini-pins to fix the flexible wires in the holes of
the connection plates
- Half connection plate for multiple light connections
for example (Or quarter plates easier to hide, etc.)
- Mini terracotta pots 3cm x 3 cm (Purely decorative
accessories and therefore not essential)
Connection
diagram of the Creole house
Smartphone screenshots of
the B4A application
Video tour of the house - Old system video - New system video
Video
test of the small bell shaken by the new recommended small servomotor
Download
the small B4R program to test the ringing of the bell
Download the APK file Download the B4A files Download the B4R file
View the archives and history of this
file (in French)
I
created a Creole house simulator by adding 7 buttons allowing you to
"manually" control the switching on of the lights, the ringing of the
bell, the opening and closing of doors and windows. This allows you to test the
operation of home equipment without using the Bluetooth remote control via your
Smartphone. But you can of course use both systems alternatively:
Buttons:
1-
First
floor lights > PIN A7
2-
Ground
floor lights > PIN A6
3-
Ring
the bell > PIN
A5 (This button replaces and simulates
the chain that is connected to a switch on the house to trigger the bell to
ring.)
4-
Open
the door > PIN A4
5-
Close
the door > PIN A3
6-
Open
the window > PIN A2
7-
Close
the window > PIN A1
Servomotors:
1-
Ring
the bell > PIN 2
2-
Window
1rst floor > PIN 9
3-
Door
ground floor > PIN 10
Lights:
1-
1rst
floor lights > PIN 32
2-
Ground
floor lights > PIN 28
HC-05 Bluetooth
Module:
-
TXD
pin (blue here) > PIN 11
-
RXD
pin (green here) > PIN 12 (protected
by 3 x 1 KB resistors)
Download
the B4R application with the 7 additional buttons