software inferface

After a long and arduous hours at the MnT lab and consulting the mentors tirelessly, the boys have finally emerged… well, the first battle is won. 

this is what we plan for the interface to look like. But of course, its taking a lot of willpower and brainpower — thank you guys — to get past the steep learning curve of figuring out codes and how to code… 

updates on software side:
—adjustable water pump power
—added an accelerator, halfway through
—VPN concept for remote network control

—Justin helped and guided us for VPN
—we managed to pass a value from frontend to backend, and connected the pumps to the slider dynamically
—we made the website nicer (with a new font, and a full background)

Definitely not an easy feat, and as the team member working on the hardware side its mad respect to watch them sit themselves down and determined to finish what they set out to do at the start of the day! 

In other news, its time to get more pumps and mosfet channels… 

daily pilgrimage

Fridays are the days where most groups are taking a break

but because our group takes turns to take a break on different days, we pretty much came everyday… 

With the arrival of the solar panels, we went to test it out in the open, and it worked surprisingly well, generating a voltage of 14.4V even under a cloudy sky. 

The next problem was how to attach it to the existing frame. 

After some thought and consideration, we changed the orientation from flat right on top of the boat to a roof-like structure. This will prevent it from collecting water at the top, allow drainage if it were to rain.

Taking inspiration to make the boat more modular so that assembly will be easier,  we came up with another grand plan. 

Now what is left is to make the frames to hold the pipes; which will involve 3D printing and the dreaded use of Fusion 360 once more…

Things to do: (by priority)
- 3D print for the 4inch pipe
- 3D print for the hole in the polycarbonate 
- 3D print for 2inch to the alumnium profile

aim is to print all by tmr (or at least by the cmg wk) so we can secure all of them on weds

into the water

While the guys continue to toggle with the code, Anita and I decided to go water rafting. After having written corresponding emails to and fro to the SRC for permission to use the pool, we finally made our way down. It was a long and arduous journey, transporting the bulky boat onto the blue bus under staring eyes and confused bus drivers, getting off at hall 6 and trekking the rest of the way in samsui women fashion to the wadding pool. 

It was a little hard to get any proper documentation of the scene that unfolded as Anita held the boat over her head and I held 2 massive 4inch PVC pipes, but if anything when the box fell apart after our experiment, here’s Anita in the raft.  

 

Skeptical that the box would even float with 2 PVC pipes on each side, we tested the empty box, and it floated magnificently. 

Then after sourcing for some sort of weights, we found bricks and placed them inside, and it still floated, although it was also beginning to sink with the addition of the second brick. 

But upon adding the reinforcing 4inch pipes, the boat was more than capable of handling 2 bricks, with a good 7cm of buoyancy measured from box bottom to the surface of the water.

The problem was, now we had to figure out how heavy the bricks were. Since neither of us ‘gymmed’, the bricks felt like a good 10kg — but turns out, it was only 5.3kg. Oops. [We walked over to the wave, and found a weighing machine. After discovering such a precious find, we transported both bricks — yes a grand total of 10.6kg — to the wave, to and fro. Thankfully we went to the back and found a trolley that the uncle graciously lent us.] 

Needless to say, we were exhausted by the end of the field trip. And so was the cable tires holding our boat together, because just before we boarded the bus again the box fell apart from our raft structure. Anita called the boys down, and we reunited at the bus stop. 

on and off

Meanwhile the boys were hustling with the webpage, and it was an insane amount of javascript that being challenged in the languages, at first glance it just seemed like a string of letters and < > / symbols. 

But what blew us away was the back end; which, is what I learnt was a thing. Front end is the webpage you see, and back end is the behind the scenes controls. 

Might have to tilt your head here (yay technology…) but here is the final accomplishment!

inner and outer rings

It was time we tested the pumps… but one thing that stumped us was the connection: it was a center ring, not the typical battery ends of + and -, and we were once again dumbfounded. 

Tony tells us it is called a ‘Barrel Plug’, and a quick google search shows that its quite a ubiquitous plug design!

Justin had to educate us from scratch; linking the concepts of the cathode and anode, we learnt that the center inner ring is usually the positive end, and the outer ring, is the negatively charged end. 

He let us try cool machinery to test out the different charges, and it was so fascinating to see electronics work from theory to reality. 

Maybe also because we are biological science students, so the whole experience was eye-opening and enlightening, albeit a normal occurrence to the mentors in the lab.

Justin also introduced this power supply that lets you vary the voltage and current, and this may sound like common knowledge; but for someone without O level background, I learnt that V= IR… but the way I learnt it was not the conventional: as opposed to seeing it as a solution in a question paper, I saw it as a practical solution to a problem we were actually facing. And it gave a whole new dimension to V = IR.  

we didnt realise we needed this, but Tony was kind enough to lend us 4, and we got about to connecting the pumps to the mosfet board and the RPi…

learning Raspberry Pi and how it works

The next thing was to share knowledge, so everything that the boys learnt by trial and error over the past few weeks: they were giving us a crash course in 1hour. 

First was powering up the cameras and the router. Connecting the wires, plugging into computer, powering up the system…

Accessing the router through the tp-link and the address @ 192.168.1.10x where x refers to the cameras and the NVR (our storage system for all the videos recorded). Once that was done, they taught us how to use Blue Iris and to familiarize ourselves with the interface. 

Then, it was using Raspberry Pi module. Functioning as a miniaturized computer, we reconnected the keyboard, mouse and monitor to the Rpi and lo and behold: 

“Eee why the wallpaper like that one”

Then, the boys introduced to us the bread board and the pins at the side of the RPi. 

Using their previous code, they proceeded to explain line by line, and the numbering system of the pins on the Rpi. 

 

 

and Anita proceeded to make that the desktop wallpaper instead… 

The code programs light bulbs connected in the bread board to blink at certain intervals. So with the lightbulbs and resistors in place, we connected the jumper wires to the board and volia!

NOTHING HAPPENED. 

We were dumbfounded. 

Checking the connections, the code, the lightbulb…we found out about one other important factor: the anode of the bulb.

Basically, LEDs have a long end and a short end.

and if not properly positioned based on current input and output, the LED will not light up.

After troubleshooting and reconfiguring the set up: we nailed it.

The lights blinked in perfect synchrony.

changing the refresh rate of the code, we learnt that the fact that “your eyes have a refresh rate of 20fms” is not exactly accurate, its actually 13.5fms, you’re welcomed. 

Make-shift lifebuoy

“I tell you so many [university] students come to me before one… I tell you what to do…” -Boss of Bes-Gro Enterprise PTE LTD

Anita and I agreed to meet at IMM. But I was running late, so Anita had kindly already gone to purchase the 55L container from Giant by the time I arrived. Carrying the bulky box from IMM to the next bus stop under the hot sun got us drenched in perspirations by the time we arrived at the next stop: Bes-Gro Enterprise PTE LTD

  

the place was definitely any engineer’s dream, it had all possible tinkering supplies — from industrial scale torchlights and spades, PVC pipes and wires… and a buzz of truck drivers littered around the perimeter getting their pre-purchased goods. Everyone knew what they were doing there, they came with a mission and purpose — and honestly, so did we, but we still stood out like tourists in a sea of locals. 

Sunlight filtered through the clouds, and it was all very idealistic and dreamy — until the reality of not really knowing enough engineering mechanics hit us. What to tell the person at the counter?

We didn’t have to grab his attention, because it was only a good 10seconds of hesitation before “Ah girl ah, what you want?” prompted us to speak. 

Showing him the containers and describing the essence of our project as comprehensively as possible, he proceeded to prompt us further. Where will the pipes be? What are the pipes for? How are we planning to attach the pipes? What is the design like? 

Bombarded and at a loss, we showed him the image of our model and the blueprints. 

“Something like this-“

He ponders, and proceeds to reply:

“I tell you what; you do like that.”

The uncle whips out a pen and draws something similar to this design; describing how the PVC pipe will float if connected like a lifebuoy. 

And thinking this is a great solution as well, we bought it. The idea, and the materials. He gives us 2m worth of PVC pipes, 4 elbow connectors and PVC Brian Glue to stick the PVC pipes together.

The following scene spelt an incoming problem: 2 short and blur students stranded in the middle of nowhere — ie. Jurong Industrial Centre — with a 2m long PVC pipe, a maze of large container trucks and previously struggling to handle 55L containers on the bus led us to one logical conclusion: Private Hire. (update: thankfully, Dr Ho was kind enough to allow us to claim the money from the transport back)

With that, our next destination was NTU; where the guys were busy cracking their heads coding and discussing software matters, familiarizing themselves with Blue Iris and the RPi module.

To be continued. 

 

 

 

gathering of the multitude

Today we had a short catch up with Dr Ho on the status of our project, before getting down to business. We showed him our gantt diagram, and our current progress — slow but steady.

Unabashedly admitted to be currently struggling with RPi given the steep learning curve… Dr Ho kindly pointed out that we aren’t alone in this struggle, and the potential to collaborate with many other teams! We described the brief idea of the boat design, and given the lack of materials yet, there was little to troubleshoot… yet. With that, Dr Ho left us in an optimistic place to continue working on the blueprints of our project.

We then continued a short discussion to officially divide the roles among our team into 2 segments, one for the software and the other for the hardware.

While Jing Rui and Zheng Xun stayed in the lab to continue figuring out the software part, Anita and I started searching for components to assemble the boat. Tomorrow, we will be heading down to the suppliers to physically get the items, including the tupperware and PVC pipes. If only we could get a ride from NTU…

Meanwhile, the guys toggled with the RPi and managed to code with it, getting the hang of the code editor! They were able to hook up some LEDs and wrote a simple Puthon programme using the Pi’s code editor (otherwise known as an IDE)

Tinkering with RPi (short vlog!)

The mentors on patrol were also able to advise us on how to set up a webpage to control the pumps, and encouraged us to pick up html, css and flask — we’re officially on our way to becoming computer science engineers now! 

Additionally, we learned how to identify the components of RPi — or rather more specifically, the pins on RPi. Who knew that electrical components had a gender too?  

Identification of RPi parts

The day ends on a high note with excitement for tomorrow and our ‘shopping spree’!

Singing

“Oh my gosh, its the Raspberry Pi! Its singing!”

Our official Amcrest cameras arrived! another round of warranties to fill… 

After measuring, we were finally able to get better estimates of the camera and thus, finally buy domes with smaller dimensions so that our boat can be more compact.

Acrylic Dome Potential Source 1

TaoBao was a new ground for us to navigate, but thankfully with the help of Justin and Kevin, we were able to find something… 

Acrylic Dome Potential Source 2

We also came up with another design under the guidance of another mentor…

This time, we might have to actually 3D print a case for the cables of the camera, which is going to be an exciting challenge for us! 

Today, Jing Rui and Zheng Xun were also able to get the RPi to play music! That was the peak of our excitement! 

Tomorrow, we will be meeting again, and presenting a brief outline and update to Dr Ho… 

Infrared and Raspberry Pi

#nightvision

Our Raspberry Pi module arrived! After assembling and and screwing parts in, the little computer was booted up and running! The next thing we need to do is to control the potential water jets through the Pi system. 

 

Then, we activated the SIM card and also learnt about Singapore’s tourist attractions — and that Lau Pa Sat is pronounced with emphasis on the ‘a’ in Sat such that it sounds more like 老芭莎 instead of ‘sat’ like past tense of ‘sit’.

After toggling a lot more with Blue Iris, we finally figured out how to activate and access the night vision on the Amcrest camera! Testing by putting it in the bag, we obtained black and white footages! One step down, and it was a euphoric rare feeling of productivity. 

We also started to think about waterproofing and designing the boat in better detail. Taking inspiration from catamaran and PVC boats, we came up with 2 tentative designs:

Image of our sketches

Image of a Catamaran boat

Image of PVC pipe boat modelled after the Catamaran

We also crafted a more detailed outline of our project and split the agenda into software and hardware for better organization. If curious, here is our Timetable and Agenda Document! 

Previously, Zheng Xun was able to get a massive storage box, and so this time we had a home for all our gadgets. 

Snug underneath the cabinets in the MnT lab, we left with a group photo with Tony, and called it a day.

group photo