Ligne 142 : | Ligne 142 : | ||
{{ {{tntn|Tuto Step}} | {{ {{tntn|Tuto Step}} | ||
|Step_Title=2D design (new tier for the box) | |Step_Title=2D design (new tier for the box) | ||
+ | |Step_Content=Goal was to create a new tier to the original box by using laser cutting of course but also laser engraving. | ||
+ | |||
+ | An engraving pattern was found. | ||
+ | |||
+ | This image file was reproduced using Inkscape and Beziers curves. | ||
+ | |||
+ | This newly designed pattern was then added to the cutting pattern. | ||
+ | |Step_Picture_00=MoodBoxByFaBteam_103_MoodBoxByFaBteam_Etape1_Plan_de_base_comment_.jpg | ||
+ | |Step_Picture_01=MoodBoxByFaBteam_102_MoodBoxByFaBteam_Etape1_trac_de_d_coupe_et_gravure_laser_V4bis_.png | ||
+ | |Step_Picture_02=MoodBoxByFaBteam_101_MoodBoxByFaBteam_Etape1_2400.jpg | ||
+ | }} | ||
+ | {{ {{tntn|Tuto Step}} | ||
+ | |Step_Title=3D design | ||
|Step_Content=The components to be 3D-printed are the following: | |Step_Content=The components to be 3D-printed are the following: | ||
* access door for the base tier alongside with the main switch and potentiometer | * access door for the base tier alongside with the main switch and potentiometer | ||
Ligne 149 : | Ligne 162 : | ||
* lateral joints to ensure the box solidity | * lateral joints to ensure the box solidity | ||
For this step, Inkscape, TinkerCAD and Blender were used. | For this step, Inkscape, TinkerCAD and Blender were used. | ||
+ | |Step_Picture_00=MoodBoxByFaBteam_205_MoodBoxByFaBteam_Etape2_Capot_Etage_Base.jpg | ||
+ | |Step_Picture_01=MoodBoxByFaBteam_204_MoodBoxByFaBteam_Etape2_Bouton_potentiom_tre.jpg | ||
+ | |Step_Picture_02=MoodBoxByFaBteam_203_MoodBoxByFaBteam_Etape2_Supports-Vue_1.jpg | ||
+ | |Step_Picture_03=MoodBoxByFaBteam_202_MoodBoxByFaBteam_Etape2_Supports-Vue_2.jpg | ||
+ | |Step_Picture_04=MoodBoxByFaBteam_201_MoodBoxByFaBteam_Etape2_Clips_de_fermeture_-_Vue_1.jpg | ||
+ | }} | ||
+ | {{ {{tntn|Tuto Step}} | ||
+ | |Step_Title=Laser engraving ad cutting of the new box tier | ||
+ | |Step_Content=Laser cutting - and engraving - has been carried out within the EdFab in Saint-Denis, France, under the kindly direction of Lola and Arthur: big thanks to both of them! | ||
+ | |||
+ | 2 other identical tiers have been made using SqyLab facility in La Verrière, France, with the benevolent help of Francis in discovering yet a new source file pre-processing due to a different machine. An equal big thanks to him! | ||
+ | |||
+ | {{Idea|Once the new tier is engraved and cut, one can choose to paint, decorate and customize it at will.}} | ||
+ | |Step_Picture_00=MoodBoxByFaBteam_304_MoodBoxByFaBteam_Etape3_mood_box_d_coupe_laser.png | ||
+ | |Step_Picture_01=MoodBoxByFaBteam_303_MoodBoxByFaBteam_Etape3_mood_box_gravure_laser.png | ||
+ | |Step_Picture_02=MoodBoxByFaBteam_302_MoodBoxByFaBteam_Etape3_DSC_0073_1528657590187.jpg | ||
+ | |Step_Picture_03=MoodBoxByFaBteam_301_MoodBoxByFaBteam_Etape3_DSC_0108.jpg | ||
+ | }} | ||
+ | {{ {{tntn|Tuto Step}} | ||
+ | |Step_Title=3D-printing | ||
+ | |Step_Content=All printings needed for the project were made on a Prusa i3 MK3. | ||
+ | |||
+ | Those are shown as opposite: | ||
+ | * base tier | ||
+ | ** access door | ||
+ | ** button to put on the potentiometer toothed wheel | ||
+ | * MoodBox tier | ||
+ | ** figurine stand (spinning) and support (fixed) | ||
+ | ** figurine itself | ||
+ | ** lateral joints | ||
+ | |Step_Picture_00=MoodBoxByFaBteam_406_MoodBoxByFaBteam_Etape4_DSC_0074.jpg | ||
+ | |Step_Picture_01=MoodBoxByFaBteam_405_MoodBoxByFaBteam_Etape4_DSC_0079.JPG | ||
+ | |Step_Picture_02=MoodBoxByFaBteam_404_MoodBoxByFaBteam_Etape4_Capot.jpg | ||
+ | |Step_Picture_03=MoodBoxByFaBteam_403_MoodBoxByFaBteam_Etape4_DSC_0024.jpg | ||
+ | |Step_Picture_04=MoodBoxByFaBteam_402_MoodBoxByFaBteam_Etape4_DSC_0064.JPG | ||
+ | |Step_Picture_05=MoodBoxByFaBteam_401_MoodBoxByFaBteam_Etape4_DSC_0067_1530540901573.jpg | ||
+ | }} | ||
+ | {{ {{tntn|Tuto Step}} | ||
+ | |Step_Title=Wiring diagram | ||
+ | |Step_Content=Sensors and other elements are connected to the base-shield set on top of the Arduino Uno as described here after with port numbers. | ||
+ | |||
+ | ==== Input ==== | ||
+ | * Potentiometer: analog input A0 | ||
+ | * Capacitive sensor: analog input A1 | ||
+ | * BME280 sensor: | ||
+ | ** Vin: 5V | ||
+ | ** GND: GND | ||
+ | ** CS: 10 | ||
+ | ** SDI: 11 | ||
+ | ** SDO: 12 | ||
+ | ** SCK: 13 | ||
+ | |||
+ | ==== Output ==== | ||
+ | * LCD: I2C port | ||
+ | * MP3 player: D2 | ||
+ | * LED-ring: D3 | ||
+ | |||
+ | ==== Motor ==== | ||
+ | * Step motor | ||
+ | ** IN 1: 10 | ||
+ | ** IN 2: 9 | ||
+ | ** IN 3: 11 | ||
+ | ** IN 4: 8 | ||
+ | |||
+ | ==== Power supply ==== | ||
+ | It's important to notice that all in all, components need a lot of power to work properly. There is not enough power available through USB connection (about 5V) and a 9V battery will be depleted faster than you'd like. | ||
+ | |||
+ | This is why we used an adaptor that can be plugged into a wall-socket and deliver enough power steadily. | ||
+ | {{Warning|Don't forget to set the power supply rotary switch on 9V in order to get the right power for your box.}} | ||
+ | |Step_Picture_00=MoodBoxByFaBteam_504_MoodBoxByFaBteam_Etape5_Montage_de_base.JPG | ||
+ | |Step_Picture_01=MoodBoxByFaBteam_503_MoodBoxByFaBteam_Etape5_DSC_0025_1530543841923.jpg | ||
+ | |Step_Picture_02=MoodBoxByFaBteam_502_MoodBoxByFaBteam_Etape5_DSC_0049_1529863456451.jpg | ||
+ | |Step_Picture_03=MoodBoxByFaBteam_501_MoodBoxByFaBteam_Etape5_DSC_0048_1529863457571.jpg | ||
+ | }} | ||
+ | {{ {{tntn|Tuto Step}} | ||
+ | |Step_Title=Arduino programming | ||
+ | |Step_Content=Programming was a bit tricky due to Arduino native sequential working. | ||
+ | |||
+ | Workarounds must have been found in order to animate several parts of the box not only sequentially but also simultaneously. | ||
+ | |||
+ | The first 3 screenshots as shown opposite exhibit declarations for each component of the box and the MoodBox tier. | ||
+ | |||
+ | Main program is a loop which executes the sequence as requested with regards to user interaction. Each sequence is identified with a number: | ||
+ | * 0: sequence where nothing happens | ||
+ | * 1: start sequence | ||
+ | * 2: awakening sequence, triggered by at least one touch on the brass bar | ||
+ | * 3: music sequence | ||
+ | Waiting time management, especially for counting how many times the bar was touched, is using the millis() function to avoid using the delay() function where the whole program is put on hold. | ||
+ | |||
+ | To bypass the sequential functioning, the AccelStepper.h library was used as well as combined commands programmed within routines called from the main loop. This allows for example simultaneousness for both LED-ring effects and step motor spinning. | ||
+ | |||
+ | {{Idea|This is the trick used in code to prevent stopping the motor from spinning while waiting for a signal from the brass bar.}} | ||
+ | |||
+ | ==== Libraries ==== | ||
+ | Main program calls libraries functions specific to sensors and components used in the box. Those are listed below: | ||
+ | * LCD: "rgb_lcd.h" | ||
+ | ** https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight | ||
+ | * LED-ring: "FastLED.h" | ||
+ | ** https://github.com/FastLED/FastLED | ||
+ | * MP3 player: "SoftwareSerial.h" and "MP3Player_KT403A.h" | ||
+ | ** https://github.com/Seeed-Studio/Grove_Serial_MP3_Player_V2.0/archive/master.zip | ||
+ | * Step motor: "AccelStepper.h" | ||
+ | ** https://github.com/adafruit/AccelStepper | ||
+ | * BME280 sensor: "SPI.h", "Adafruit_Sensor.h" and "Adafruit_BME280.h | ||
+ | ** https://github.com/adafruit/Adafruit_BME280_Library | ||
+ | ** https://github.com/adafruit/Adafruit_Sensor | ||
+ | |Step_Picture_00=MoodBoxByFaBteam_604_MoodBoxByFaBteam_Etape6_pgm_aruino_init_1.png | ||
+ | |Step_Picture_01=MoodBoxByFaBteam_603_MoodBoxByFaBteam_Etape6_pgm_aruino_init_2.png | ||
+ | |Step_Picture_02=MoodBoxByFaBteam_602_MoodBoxByFaBteam_Etape6_pgm_aruino_init_3.png | ||
+ | |Step_Picture_03=MoodBoxByFaBteam_601_MoodBoxByFaBteam_Etape6_pgm_arduino_fonction_task_wait.png | ||
+ | }} | ||
+ | {{ {{tntn|Tuto Step}} | ||
+ | |Step_Title=Assembling, testing and finishing off | ||
+ | |Step_Content=Arduino Uno, potentiometer and main switch are connected to the power supply inside and on the base tier of the box (lower tier). | ||
+ | |||
+ | LCD screen is installed in side the LCD tier (middle tier). | ||
+ | |||
+ | MoodBox tier (upper tier) is composed as described here below. | ||
+ | |||
+ | On box walls are fixed: | ||
+ | * the step motor used to animate the figurine - its controller card can be seen on the left on the overview picture as shown opposite | ||
+ | * the MP3 player with both SD-card slot and AudioIn port aligned with MoodBox rear-side wall openings - at bottom on overview picture | ||
+ | * the capacitive sensor to be connected to the brass bar - see the orange wire on the right on the overview picture | ||
+ | Right underneath and throughout the MoodBox top cover are fixed: | ||
+ | * the LED-ring | ||
+ | * the step motor with only its axis pulling through, centered with the LED-ring | ||
+ | * the brass bar | ||
+ | On top of the MoodBox tier are fixed: | ||
+ | * the figurine stand, just above the LED-ring in order to subdue its bright light | ||
+ | * the figurine itself, set on the motor axis to be able to spin with it | ||
+ | |Step_Picture_00=MoodBoxByFaBteam_705_MoodBoxByFaBteam_Etape7_DSC_0105.JPG | ||
+ | |Step_Picture_01=MoodBoxByFaBteam_704_MoodBoxByFaBteam_Etape7_DSC_0100.JPG | ||
+ | |Step_Picture_02=MoodBoxByFaBteam_703_MoodBoxByFaBteam_Etape7_DSC_0103.JPG | ||
+ | |Step_Picture_03=MoodBoxByFaBteam_702_MoodBoxByFaBteam_Etape7_DSC_0051_1529863454850.jpg | ||
+ | |Step_Picture_04=MoodBoxByFaBteam_701_MoodBoxByFaBteam_Etape7_DSC_0091.jpg | ||
+ | }} | ||
+ | {{ {{tntn|Tuto Step}} | ||
+ | |Step_Title=Now let's dance! | ||
+ | |Step_Content=MoodBox tier is now up and able to run. | ||
+ | |||
+ | Please refer to Introduction and overall specifications to properly use it! | ||
+ | |||
+ | Thank you for your interest :) | ||
+ | |Step_Picture_00=MoodBoxByFaBteam_801_MoodBoxByFaBteam_Etape8_moodbox_cran_d_marrage.png | ||
}} | }} | ||
{{ {{tntn|Notes}} | {{ {{tntn|Notes}} | ||
− | |Notes= | + | |Notes=Figurine used for final presentation comes from Thingiverse (https://www.thingiverse.com/thing:570654). |
+ | |||
+ | It was chosen by default. First idea was to recreate in 3D the fabulous Fantasia dancing couple: Hyacinth and Ben Ali Gator. | ||
+ | |||
+ | "Bentolux" project - main box design - to be available soon on WikiFab (around July 2018). | ||
+ | |||
+ | French page for this project can be found here: https://wikifab.org/wiki/MoodBox | ||
}} | }} | ||
{{ {{tntn|Tuto Status}} | {{ {{tntn|Tuto Status}} | ||
|Complete=Draft | |Complete=Draft | ||
}} | }} |
Auteur Anne JANNIER | Dernière modification 9/12/2019 par Clementflipo
Laser cutting, 3D printing, Arduino programming, Jukebox, Weather, Arduino, LED-ring, Step motor, LCD MoodBoxByFaBteam_000_MoodBoxByFaBteam_Introduction.jpg en none Creation 0
This modular box is a 3-tier set. Once on, it provides basic weather station information (temperature, humidity, atmospheric pressure) but becomes a "Mood box", here a jukebox actually, when properly activated.
This project is a group project (FaB team) carried out during a French hybrid training program called "Fabrication numérique" (CNC machining and fabrication) - class of 2018, July.
This final group project involves some of the know-how acquired during the training program and seals the deal. It is complementary with the "Bentolux" project which should be documented and referenced soon on wikifab.org.
Instructions for the project were:
After some thought our group decided to create a musical tier - we called it "Mood box" - to complement the weather station using the base-tier and the LCD-tier.
Expected behavior is described here below.
When properly plugged in, the box can be started by using the switch on the front.
Starting the box triggers the following events:
If no other action is made right away, the box goes in "sleep mode".
In "sleep mode", temperature and humidity are displayed with a custom message on LCD screen.
These custom messages as well as the color set for both the LED-ring and LCD screen depend on current temperature:
Mood box is activated when the user touches the brass bar placed on top of it - this bar is connected to a capacitive sensor set inside the box.
Upon activation, figurine, LED-ring and LCD wake up.
Cette activation est accompagnée d'une animation conjointe de la figurine, de l'anneau de LEDs et de l'écran LCD.A new tap triggers play mode.
First time, playlist begins with the first title on the list.
The potentiometer button - placed under the on/off switch on the front - is then active and serves as volume control for music.
The brass bar remains also active and stands by pending new user interaction.
While music plays, action differs depending on how many times the bar is touched:
During play time, LED-ring lights up in a rainbow sequence and figurine spins on top of its stand.
Note: Each time a play/pause/next/previous action is taken into account, figurine spins in other direction.
After activating the Mood box or when the music is stopped, if the bar remains idle for more than 5 seconds, sleep mode kicks in and deactivation occurs.
Note: When exiting sleep mode and resuming playing music, the player starts from where it was when deactivated.
Necessary materials are listed here below by category.
Tools used during this project are hereby grouped by use.
Goal was to create a new tier to the original box by using laser cutting of course but also laser engraving.
An engraving pattern was found.
This image file was reproduced using Inkscape and Beziers curves.
This newly designed pattern was then added to the cutting pattern.
The components to be 3D-printed are the following:
For this step, Inkscape, TinkerCAD and Blender were used.
Laser cutting - and engraving - has been carried out within the EdFab in Saint-Denis, France, under the kindly direction of Lola and Arthur: big thanks to both of them!
2 other identical tiers have been made using SqyLab facility in La Verrière, France, with the benevolent help of Francis in discovering yet a new source file pre-processing due to a different machine. An equal big thanks to him!
All printings needed for the project were made on a Prusa i3 MK3.
Those are shown as opposite:
Sensors and other elements are connected to the base-shield set on top of the Arduino Uno as described here after with port numbers.
It's important to notice that all in all, components need a lot of power to work properly. There is not enough power available through USB connection (about 5V) and a 9V battery will be depleted faster than you'd like.
This is why we used an adaptor that can be plugged into a wall-socket and deliver enough power steadily.
Programming was a bit tricky due to Arduino native sequential working.
Workarounds must have been found in order to animate several parts of the box not only sequentially but also simultaneously.
The first 3 screenshots as shown opposite exhibit declarations for each component of the box and the MoodBox tier.
Main program is a loop which executes the sequence as requested with regards to user interaction. Each sequence is identified with a number:
Waiting time management, especially for counting how many times the bar was touched, is using the millis() function to avoid using the delay() function where the whole program is put on hold.
To bypass the sequential functioning, the AccelStepper.h library was used as well as combined commands programmed within routines called from the main loop. This allows for example simultaneousness for both LED-ring effects and step motor spinning.
Main program calls libraries functions specific to sensors and components used in the box. Those are listed below:
Arduino Uno, potentiometer and main switch are connected to the power supply inside and on the base tier of the box (lower tier).
LCD screen is installed in side the LCD tier (middle tier).
MoodBox tier (upper tier) is composed as described here below.
On box walls are fixed:
Right underneath and throughout the MoodBox top cover are fixed:
On top of the MoodBox tier are fixed:
MoodBox tier is now up and able to run.
Please refer to Introduction and overall specifications to properly use it!
Thank you for your interest :)
Figurine used for final presentation comes from Thingiverse (https://www.thingiverse.com/thing:570654).
It was chosen by default. First idea was to recreate in 3D the fabulous Fantasia dancing couple: Hyacinth and Ben Ali Gator.
"Bentolux" project - main box design - to be available soon on WikiFab (around July 2018).
French page for this project can be found here: https://wikifab.org/wiki/MoodBox
Draft
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #