This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
thesis:work-journal [2019/03/02 16:20] avnerus |
thesis:work-journal [2019/03/23 22:34] avnerus |
||
---|---|---|---|
Line 278: | Line 278: | ||
</code> | </code> | ||
- | So I already built a new image using musl. I had to update and apply [[https://github.com/WebPlatformForEmbedded/meta-wpe/blob/master/recipes-wpe/wpewebkit/wpewebkit/0001-Fix-build-with-musl.patch|this patch]] for WPE, but I'm excited to see how gst-rpicamsrc works, **with the original rpi-userland**, stay tuned. | + | So I already built a new image using musl. I had to update and apply [[https://github.com/WebPlatformForEmbedded/meta-wpe/blob/master/recipes-wpe/wpewebkit/wpewebkit/0001-Fix-build-with-musl.patch|this patch]] for WPE, but I'm excited to see how gst-rpicamsrc works, **with the original rpi-userland**, stay tuned. I also posted my problem to the uclibc-ng mailing list [[https://mailman.uclibc-ng.org/pipermail/devel/2019-March/001824.html|here]]. |
+ | ==== Fried Teensy and Motor drivers ==== | ||
+ | Over the past week, while mostly working on the uclibc issue, I also managed to fry my Teensy. I was setting up the pressure board when suddenly I heard one of the solenoids flip, and after that the Teensy would not respond anymore and was declared **bricked**. | ||
+ | |||
+ | Since I am still using a breadboard with tons of wires, it may have been that a loose wire from somewhere touched something that it shouldn't be touching, but Janne suggested that it may have been [[https://en.wikipedia.org/wiki/Counter-electromotive_force|"Back EMF"]] - a transient counter electromagnetic force that goes the wrong way, and fries your components. I am still not sure about it, but the manual for TB6612FNG suggests that it is something worth considering in your circuit, and the solution is pretty simple - Diods. As described [[https://www.instructables.com/id/Using-the-Sparkfun-Motor-Driver-1A-Dual-TB6612FNG-/|here]], if your motor is driving in just one direction, all it takes is one diode that is parralel to the motor's +/- , with the direction (line) of the diode going from (-) to (+). | ||
+ | |||
+ | With great delight I installed diodes on all of the valves and the pumps, and when turning on the power, **3 motor driverss were fried**, one of them even burst into a flame, because it burned the paper label that was on it: | ||
+ | |||
+ | {{:thesis:work-journal:burned_motor_driver_label.jpeg?400|}} | ||
+ | |||
+ | Apparently, the black/red wires going from the valves were actually reversed, because what actually determines which pin of the driver is plus and which is minus, is how I set the HIGH and LOW on the input pins. So I basically diverted all of the current right back at the motor driver. Damn. **Next time try one motor driver first **. Luckily the teensy survived and the motor driver is not too expensive. After organizing and reversing all of the wires, I now have a working setup again, which is also protected from Back EMF, and //apart from 1 teensy and 3 motor drivers //, everything else seems fine. | ||
+ | |||
+ | ===== Tue 05/03/2019 ===== | ||
+ | |||
+ | For just adding some task notes so I won't forget: | ||
+ | |||
+ | * Chcek out the WPE Webkit performance tips for RPi [[https://github.com/Igalia/meta-webkit/wiki/PerformanceTips|here]] and [[https://github.com/Igalia/meta-webkit/wiki/RPi|here]]. | ||
+ | * Add GSTREAMER_GL setting. | ||
+ | * Modify GPU memory settings. | ||
+ | |||
+ | ===== Thu 07/03/2019 ===== | ||
+ | |||
+ | Again a reminder: | ||
+ | |||
+ | * **Patch gst-omx to remove the hdmi / analogue audio sink plugins from gstomx.conf** | ||
+ | |||
+ | |||
+ | |||
+ | ===== Mon 18/03/2019 ===== | ||
+ | Reminder: | ||
+ | * File a bug for Webkit WPE, audio elements are looping unsolicitedly, otherwise audio is starting to work great! | ||
+ | * Check this link for real time manipulation of the voice: https://github.com/urtzurd/html-audio | ||
+ | |||
+ | |||
+ | ===== Sun 23/03/2019 ===== | ||