Day 8: Tuesday – A long way to go

Today we took a few more steeps in the right direction, but everything is taking a longer time than we anticipated, and we still have a lot to do. Our goals was to finish the sourdough machine by day 10, but it is starting to feel a bit unrealistic. Currently it looks like we will have the product ready by day 11, and perhaps we can use the weekend to film, and write the report, so that we will finish everything on time.

One of the goals for today was to collect the Arduino code to one file which is functional with all the components. Another goals was to test the motor set-up and start measuring the amount that get dispensed, for this we needed to build a prototype chassis.

The arduino, nodeMCU and all the components, WIP

Today Aksel has focused on wiring all components and code together, except for NodeRED just currently; that will probably be tomorrow.

The first challenge has been getting it organized in a way that allows us to easily spread it out again on the test bench. Therefore I chose to link up 4 breadboards and keep the arduino on the side. We can then just split the breadboard up if that is needed.

Thereafter I looked at every arduino code file and made each task into a function so it is all callable. Currently are we going to have the following code functions:

  • Amount(“containerName”), returns and float with the distance from the container lid.
  • Flour(degrees, speed), to be changed to accept mL, but might vary from flour to flour. The speed is to change the intensity of the movement.
  • Water(mL), to be changed to reflect a measured flowrate.
  • Mixing(degrees, speed), to be further incorporated into a mixing function taking into account the amount of sourdough.
The current breadboard setup with: arduino uno, nodeMCU, 2 stepper motors, 2 easy drivers, peristaltic pump, 3 ultrasound sensors, 12-5v voltage regulater, N-channel MOSFET, , barrelplug and a lot of wires.

The next steps are writing the functions controlling the various modes. So that includes baking mode travel mode and keep it kicking. Also the display code needs to be finished and incorporated in the main code.
Sebastian is currently writing the display code which will make it possible to display any string easily.
The biggest challenge however is going to be establishing a logical way of establishing serial communication between the nodeMCU and the arduino as the nodeMCU acts as the wifi hookup.

OLED

Sebastian and Emilie worked on the OLED-screen, which is a quite unreliable little thing. Even though we bought a new OLED with high resolution and color, it caused us trouble, as it turns out that the display Adafruit sells has one extra pin broken out. A pin that our cheap Chinese knock-off seemed to miss: the CS pin (Chip Select pin). We will ask if instrument group can help us to solder it so it works, but at the moment we plan on just using the OLED we used with the locker.

We figured out how to load images to it, flip between displays and change the font and position. It is important that the display provides easy interaction with the user and is in line with our vision.

Testing the old OLED with a HappyDough™ logo

Assembling the final locker – week 6

Our locker is made from laser cut plywood and designed using the website called festi.info, where we made a Rounded Box. This made it simpler to assemble the box and allowed the corners to be rounded. We modified the design in AutoCad, were we drev the holes for the OLED, the Buzzer and the power supply. We also drew the shelf in AutoCad with a hole for the chords. Then we printed the box in 6 mm plywood, and engraved the drawings, text and symbol, drawn in Illustrator.

The laser cut pieces

We engraved the QR-code on the front together with the link for the webside. We also engraved our group name, DTU-logo, and course info. On the inside of the locker we engraved “Remember to close me when you’re done” as this is an important step for the closet to function properly. We used a piano hinge, so we were sure the door would be aligned.

We decided to solder the NodeMCU and chords to a perfboard, and soldered the chords connected to the buzzer, the OLED and the other components. We chose to solder everything together, to make sure that everything would stay connected as we were moving it around.

On the inside of the door we mounted a mirror. The electronic part is hidden by a top shelf, so both the lock and OLED is placed at the top. The board and NodeMCU was glued to the shelf, and the OLED and buzzer was glued to the front of the locker.

At last we assembled the front, back, sides and shelf, and tested if our door and the lock fit together. We wanted the OLED screen to have a better appearance, so we laser cut an acrylic plate for the screen. Finally we drilled the holes for the bolt and nuts to mound it on the pegboard in Skylab.

See the finished design here: https://wordpress.com/block-editor/post/chindogu.home.blog/138