tag:blogger.com,1999:blog-60957648268281925062024-02-18T13:05:22.770+08:00Afdhal Atiff TanMy R&D Progress, experiment, experience and me, in real life...Unknownnoreply@blogger.comBlogger59125tag:blogger.com,1999:blog-6095764826828192506.post-55338961305332139732019-06-09T04:13:00.001+08:002019-06-09T12:06:11.807+08:00Crystal Capacitor CalculatorI needed a simple crystal capacitor calculator, the formula used is: C = 2*C<span style="font-size: x-small;">load</span> – 2*C<span style="font-size: x-small;">stray</span> (taken from <a href="https://blog.adafruit.com/2012/01/24/choosing-the-right-crystal-and-caps-for-your-design/">https://blog.adafruit.com/2012/01/24/choosing-the-right-crystal-and-caps-for-your-design/</a>).<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-iHNVkOycMx8/XPwVsqCuzUI/AAAAAAAAJc4/lvb7smOdMuk5IC33blgi67zbwOqf6sZeQCLcBGAs/s1600/xtal.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="216" data-original-width="325" height="212" src="https://1.bp.blogspot.com/-iHNVkOycMx8/XPwVsqCuzUI/AAAAAAAAJc4/lvb7smOdMuk5IC33blgi67zbwOqf6sZeQCLcBGAs/s320/xtal.PNG" width="320" /></a></div>
<br />
Just fill in C_load (from crystal datasheet) and C_stray (depends on PCB layout), then, press the calculate button.<br />
<br />
CL: <input id="CL" type="number" /> (from crystal datasheet)<br />
<br />
CS: <input id="CS" type="number" /> (from PCB layout)<br />
<br />
<button onclick="calc_v2()" type="button">Calculate</button> <br />
<br />
C: <input id="C" type="number" /> (this is the capacitor to be connected to the crystal)<br />
<br />
<br />
Optional: Make sure that CL and CL_Actual is not too far from each other.<br />
Actual C_load if using the calculated value [<b>CL = (C1 * C2) / (C1 + C2) + Cstray</b>]<br />
CL_Actual: <input id="CL_ACTUAL" type="number" />
<script type="text/javascript">
function calc_v2() {
let cl = parseFloat(document.getElementById("CL").value);
let cs = parseFloat(document.getElementById("CS").value);
let c = 2*(cl - cs);
document.getElementById("C").value = c;
document.getElementById("CL_ACTUAL").value = ((c*c)/(2*c)) + cs;
}
</script><br />
<br />
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com1tag:blogger.com,1999:blog-6095764826828192506.post-51556444616794464032019-04-10T06:28:00.002+08:002019-04-10T06:28:58.868+08:00Simple Open-Collector Comparator with Pull-up Resistor Hysteresis Level (Inverting Schmitt Trigger) CalculatorMost of the calculators on the internet are designed for push-pull output comparator, while they are handy, I do find myself wanting to use an open-collector or open-drain comparator instead.<br />
<br />
As described by the title, this is a simple javascript-based calculator to calculate V<span style="font-size: x-small;">H</span> and V<span style="font-size: x-small;">L</span>.<br />
No styling applied, so, it will look a bit ugly. 😆<br />
<br />
There is no input-sanitation, so, make sure to only put plain numbers.<br />
Let me know if you spot any careless mistake in the maths. 😁<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-0N_b9-ei-M8/XK0bsvV5taI/AAAAAAAAJa0/Zhk0SWdgcwgbL3Nk3AG9z0VOB7kyxJVfgCLcBGAs/s1600/hysteresisCalc.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="449" data-original-width="396" height="320" src="https://3.bp.blogspot.com/-0N_b9-ei-M8/XK0bsvV5taI/AAAAAAAAJa0/Zhk0SWdgcwgbL3Nk3AG9z0VOB7kyxJVfgCLcBGAs/s320/hysteresisCalc.jpg" width="282" /></a></div>
<br />
<br />
VR: <input id="VR" type="number" /> <br />
<br />
R1: <input id="R1" type="number" /> <br />
<br />
R2: <input id="R2" type="number" /> <br />
<br />
RP: <input id="RP" type="number" /> <br />
<br />
RF: <input id="RF" type="number" /> <br />
<br />
<button onclick="calc_v()" type="button">Calculate</button> <br />
<br />
VH: <input id="VH" type="number" /> <br />
<br />
VL: <input id="VL" type="number" /> <br />
<br />
<script type="text/javascript">
function parallel_resistor(x, y) {
return (x*y)/(x+y);
}
function calc_v() {
let vr = parseFloat(document.getElementById("VR").value);
let r1 = parseFloat(document.getElementById("R1").value);
let r2 = parseFloat(document.getElementById("R2").value);
let rp = parseFloat(document.getElementById("RP").value);
let rf = parseFloat(document.getElementById("RF").value);
document.getElementById("VH").value = (vr*r2)/(parallel_resistor(r1, rp + rf) + r2);
document.getElementById("VL").value = (vr * parallel_resistor(r2, rf))/(parallel_resistor(r2, rf) + r1);
}
</script>Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-69841726702009710042018-07-10T04:03:00.000+08:002018-07-10T04:03:01.399+08:00DIY Ultrasonic Cleaner (aka Sonicator)I recently needed a sonicator for my <a href="https://youtu.be/TLaghpuB1Es">graphene</a> experiments. Commercial units already available on the market, but, to satisfy my curiosity, I decided to build one myself out of a discarded pot, a generic transducer and its driver board bought on <a href="http://s.click.aliexpress.com/e/MBEIqNB">Aliexpress</a>:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://s.click.aliexpress.com/e/vv3nEUn" style="margin-left: 1em; margin-right: 1em;" target="_parent"><img src="//ae01.alicdn.com/kf/HTB1NTIsPpXXXXcWXpXXq6xXFXXXf/-font-b-Ultrasonic-b-font-Cleaner-Parts-100W-28KHz-font-b-Ultrasonic-b-font-Cleaning.jpg_220x220.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I was also inspired by this <a href="https://youtu.be/gAEulvRS1mI">video</a>. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The result is:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-iPufH9YRr3Q/W0O3L31uocI/AAAAAAAAJUo/hR-3gnQZ3uEi-jJ1CXE61ymCANvuAnq0QCLcBGAs/s1600/P_20180705_152402.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="240" src="https://1.bp.blogspot.com/-iPufH9YRr3Q/W0O3L31uocI/AAAAAAAAJUo/hR-3gnQZ3uEi-jJ1CXE61ymCANvuAnq0QCLcBGAs/s320/P_20180705_152402.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The transducer, driver board, and epoxy placed on the used pot.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-hYqKqWE_9DI/W0O3L3W1Y2I/AAAAAAAAJUs/jCpKRtnp-7UVeJ81NqTG6d6daISIydpsACLcBGAs/s1600/P_20180705_174755.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="240" src="https://1.bp.blogspot.com/-hYqKqWE_9DI/W0O3L3W1Y2I/AAAAAAAAJUs/jCpKRtnp-7UVeJ81NqTG6d6daISIydpsACLcBGAs/s320/P_20180705_174755.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Close-up of the glued transducer.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-gwOFel77u4A/W0O3L7lybVI/AAAAAAAAJUk/dZMMf76aqJIR-yh2OVm05q0YjdDkb8PJQCLcBGAs/s1600/P_20180705_175611.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://3.bp.blogspot.com/-gwOFel77u4A/W0O3L7lybVI/AAAAAAAAJUk/dZMMf76aqJIR-yh2OVm05q0YjdDkb8PJQCLcBGAs/s320/P_20180705_175611.jpg" width="240" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Piezoelectric transducer powered by the driver board. </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The 28kHz transducer and the driver board is rated at 60W and 100W respectively. However, my <a href="http://s.click.aliexpress.com/e/F6EI6AA">power meter</a> only reports 50W of input power.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I went with a 28kHz instead of a <a href="http://s.click.aliexpress.com/e/jeYZj6E">40kHz</a> version because I wanted a more energetic cavitation for stronger material pulverisation, faster emulsification, and more aggressive cleaning.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Despite being super-loud, the whole arrangement failed to agitate a few grams of micronised graphite powder both <a href="http://www.cleanosonic.com/the-ultrasonic-cleaner-faq/#direct">direct and indirectly</a>. Even the cleaning effect is not that impressive. Putting my hand in the bath gives a slight tingling feeling.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I believe the sub-optimal outcome is due to the usage of the oversized pot, causing the transducer unable to resonate effectively at its natural frequency.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
This may be improved by <a href="https://youtu.be/-E7zlQEk5MA">tuning</a> the dimension of the reservoir and adding <a href="https://youtu.be/_BR7OHnLyu4">more transducer</a>. I might repurpose the transducer to be a <a href="https://youtu.be/sgvuCvK0aLw">homogeniser</a> in the future. For the time being, I used it as an automotive engine cleaner. :D </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
To conclude the project, I basically made an underpowered ultrasonic bath, I should get a better result if I use a smaller <a href="https://youtu.be/O35JuWe1lH0">container</a>.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-7753294670638755352017-06-13T08:19:00.000+08:002017-06-13T08:19:15.944+08:00Low Cost Active Battery BalancerYou might have noticed in my last posts that I used 120 pieces of recycled 18650 lithium cells alongside with 4S Lipo pack to power my ebike.<br />
<br />
This introduces large variance in terms of practical charge capacity and coulometric efficiency. As the result, charging them all in series configuration (14S pack) can be very challenging because each individual cell accepts charge at a different rate, meaning, all 14S will sit at different voltage levels.<br />
<br />
The issue arises when at least one of them reached overvoltage condition. For my case, anything above 4.2V per cell is deemed to be very dangerous as it might explode and catch on fire. The tragedy happened to me once before (fault charger) and I learned the hard way to respect the voltage limit.<br />
<br />
I then constructed a passive battery balancer which was TL431-based shunt regulator (refer to my Hackaday link below). It works fine and dandy, but, the shunt transistor overheats pretty much all of the time. Dissipating 300mA as the balancing current at 4.2V (that's 1.26W) proven to be stressful for the design.<br />
<br />
Not to mention the fact the balancer needs all cells in the pack to reached 4.2V before the actual balancing can be performed (this is commonly called as top-balancing).<br />
<br />
Googling for an active balancer solution lead me to expensive proprietary solutions that I cannot afford at the moment.<br />
<br />
Hence, I decided to give it a go by designing it myself using low cost parts.<br />
<br />
This is what I come out with:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-arq4PkBAxxI/WT8rK-pXG4I/AAAAAAAAGms/COHM-sZX7yQZCxqxCZj9S6S_5GRe2czAgCLcB/s1600/ActiveBalancer.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="602" data-original-width="1175" height="163" src="https://3.bp.blogspot.com/-arq4PkBAxxI/WT8rK-pXG4I/AAAAAAAAGms/COHM-sZX7yQZCxqxCZj9S6S_5GRe2czAgCLcB/s320/ActiveBalancer.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The schematic.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The principle is quite straight forward really. All I did was converting the synchronous buck converter module (MP2307) to become a voltage follower (look at R4 and R5). In this case, the voltage that it is following is the half of the battery voltage.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
In theory, I can make the power converter module to follow any voltage that I want (within limits of course). This is a very simple way of modifying the voltage regulator to instead of having the voltage to be set by an internal voltage reference (0.925V in this case) and a resistor-network, this technique forces the chip to follow an external voltage reference instead.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
In other words, the circuit forces the voltage regulation to be governed by an external voltage reference, instead of the internal one.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-Z-IWg1BiTxg/WT8rp5NzleI/AAAAAAAAGmw/jECshoRte6cmj7swwAC9kFrbh_695-snACLcB/s1600/PHOTO_20170502_204810.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="240" src="https://4.bp.blogspot.com/-Z-IWg1BiTxg/WT8rp5NzleI/AAAAAAAAGmw/jECshoRte6cmj7swwAC9kFrbh_695-snACLcB/s320/PHOTO_20170502_204810.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The circuit constructed on a perfboard.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I originally intent to manufacture and sell on it Tindie, but, before I do that, I thought it would be nice to have a review by a friend of mine in the community (Vanarian from Endless-Sphere). </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Unfortunately, the board that I posted to him in France was lost during shipment and the board does not reach to him.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I lost my motivation and decided to open source this instead with the hope that the community can benefit from it and made some enhancement to it.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I believe this is the first of its kind: simple and low-cost. Maybe someone can prove me otherwise? ;)</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The design files can be found in the links below.</div>
<br />
<u><b>Links</b></u><br />
Github: <a href="https://github.com/AfdhalAtiffTan/LowCostActiveBatteryBalancer">https://github.com/AfdhalAtiffTan/LowCostActiveBatteryBalancer</a><br />
Endless-Sphere: <a href="https://endless-sphere.com/forums/viewtopic.php?f=14&t=87372">https://endless-sphere.com/forums/viewtopic.php?f=14&t=87372</a><br />
Hackaday: <a href="https://hackaday.io/project/20825-low-cost-non-dissipative-active-battery-balancer">https://hackaday.io/project/20825-low-cost-non-dissipative-active-battery-balancer</a><br />
Banggood: <a href="https://www.banggood.com/5Pcs-Mini-DC-Adjustable-Power-Supply-Buck-Module-Step-Down-Module-p-952402.html?p=3117141642416201505D">https://www.banggood.com/5Pcs-Mini-DC-Adjustable-Power-Supply-Buck-Module-Step-Down-Module-p-952402.html?p=3117141642416201505D</a>Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com66tag:blogger.com,1999:blog-6095764826828192506.post-61037642264105736532017-03-15T09:01:00.000+08:002017-03-15T09:01:02.214+08:00An Update on My eBike ProjectI mentioned in the last post that I bought 120 pieces of used 18650 cells from recycled laptop batteries to replace my exhausted 14S 8Ah LiPo cells from Hobbyking.<br />
<br />
This post is meant to give some updates on the progress.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-UrKWPgqKtSg/WMiAkAm8xpI/AAAAAAAAGWI/8Nfac9FmRWUt1b3T1Xz2zqEGTHMJ3kZBQCLcB/s1600/PHOTO_20170114_173247.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-UrKWPgqKtSg/WMiAkAm8xpI/AAAAAAAAGWI/8Nfac9FmRWUt1b3T1Xz2zqEGTHMJ3kZBQCLcB/s320/PHOTO_20170114_173247.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Commenced by sorting the cells by initial voltage that it holds.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-VlUgh2KlGac/WMiAlGJy23I/AAAAAAAAGWM/hXm6mGD4DHc6g3MXgHG5tHiGEaXkPvFZQCLcB/s1600/PHOTO_20170114_212221.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-VlUgh2KlGac/WMiAlGJy23I/AAAAAAAAGWM/hXm6mGD4DHc6g3MXgHG5tHiGEaXkPvFZQCLcB/s320/PHOTO_20170114_212221.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Found 8 bins of them. The one in the box were under 1V.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-Yx0ewKcSE-I/WMiAaQ_HEWI/AAAAAAAAGWE/R0ZT81vZk40nAC2z5zG-GUmt-MGv7zAAQCLcB/s1600/PHOTO_20170114_213444.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://2.bp.blogspot.com/-Yx0ewKcSE-I/WMiAaQ_HEWI/AAAAAAAAGWE/R0ZT81vZk40nAC2z5zG-GUmt-MGv7zAAQCLcB/s320/PHOTO_20170114_213444.jpg" width="240" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Built a 1A constant current load to simplify the process of measuring internal-resistance of the cells.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-62R4ewzfoEo/WMiA4ZM2nII/AAAAAAAAGWQ/Uimnu4FRFBM8BFbUR30pemQE0wZdMSVZwCLcB/s1600/PHOTO_20170114_213550.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-62R4ewzfoEo/WMiA4ZM2nII/AAAAAAAAGWQ/Uimnu4FRFBM8BFbUR30pemQE0wZdMSVZwCLcB/s320/PHOTO_20170114_213550.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Another view of the constant current load. Schematic is visible above the board. It was designed to be powered through USB 5V DC supply.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-ARiAbot_u20/WMiBEx2URVI/AAAAAAAAGWU/ebhbuUcDYxEACPHtbQsxQV2qm-asHuGEACLcB/s1600/PHOTO_20170115_211714.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-ARiAbot_u20/WMiBEx2URVI/AAAAAAAAGWU/ebhbuUcDYxEACPHtbQsxQV2qm-asHuGEACLcB/s320/PHOTO_20170115_211714.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Most of the cells are around 200milliohms. All matched internal resistance cells grouped together in a pack of 12. This will make it a 12P cell.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-rhomAdVROCE/WMiBIywscWI/AAAAAAAAGWY/FNw2CsVO5aMveMuM6JA3apb4E_ePByBAACLcB/s1600/PHOTO_20170115_223638.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-rhomAdVROCE/WMiBIywscWI/AAAAAAAAGWY/FNw2CsVO5aMveMuM6JA3apb4E_ePByBAACLcB/s320/PHOTO_20170115_223638.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is the pack that I used (4S7P) while working on the rest. The blue cells are from my colleague (Zhang Yifeng), Thanks! Had to dismantled it for the new configuration (10S12P).</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/--tPMEA-GfQw/WMiBWGasJ-I/AAAAAAAAGWc/BNOlMUzvt1YJwus7zG5QN61rUBn7DAJVgCLcB/s1600/PHOTO_20170118_233747.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/--tPMEA-GfQw/WMiBWGasJ-I/AAAAAAAAGWc/BNOlMUzvt1YJwus7zG5QN61rUBn7DAJVgCLcB/s320/PHOTO_20170118_233747.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Built a passive dissipative cell balancer. The circuit can be found in <a href="http://www.ti.com/lit/ds/symlink/tl431.pdf">TL431</a> datasheet. It was called "shunt regulator".</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-5bav3Kqn87k/WMiBmBSkGxI/AAAAAAAAGWg/JaNgSCEsx3Ijpmcr9v9BCPlQ3Ug1md_YwCLcB/s1600/PHOTO_20170118_233758.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-5bav3Kqn87k/WMiBmBSkGxI/AAAAAAAAGWg/JaNgSCEsx3Ijpmcr9v9BCPlQ3Ug1md_YwCLcB/s320/PHOTO_20170118_233758.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Back view of the lithium cell balancer.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-YI_7P95KrcI/WMiBvPD9g7I/AAAAAAAAGWk/wswDA8CUyYkMCysk1a5Z7myCIS7qR8SrgCLcB/s1600/PHOTO_20170118_233813.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-YI_7P95KrcI/WMiBvPD9g7I/AAAAAAAAGWk/wswDA8CUyYkMCysk1a5Z7myCIS7qR8SrgCLcB/s320/PHOTO_20170118_233813.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Top view of the balancer.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-klD9WtOU4z4/WMiB-n893-I/AAAAAAAAGWo/QCrDrpE6vwEucTLeom_q_n7r_GkrKB6XQCLcB/s1600/PHOTO_20170118_233826.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-klD9WtOU4z4/WMiB-n893-I/AAAAAAAAGWo/QCrDrpE6vwEucTLeom_q_n7r_GkrKB6XQCLcB/s320/PHOTO_20170118_233826.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Bottom view of the ballancer.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-yT99szHOu7c/WMiCOF51ZLI/AAAAAAAAGWs/RI4NZMQSo1IbIFY3BcPgNNwcUdKPVLLIQCLcB/s1600/PHOTO_20170220_224553.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-yT99szHOu7c/WMiCOF51ZLI/AAAAAAAAGWs/RI4NZMQSo1IbIFY3BcPgNNwcUdKPVLLIQCLcB/s320/PHOTO_20170220_224553.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
It ran so hot that I needed to use an adjustable wrench as the heatsink.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-dSRT-0qsHxg/WMiCZyGUcqI/AAAAAAAAGWw/bmtAZyvFIgoB_jax4-c8yoxKDdwdi_uUQCLcB/s1600/PHOTO_20170305_200214.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-dSRT-0qsHxg/WMiCZyGUcqI/AAAAAAAAGWw/bmtAZyvFIgoB_jax4-c8yoxKDdwdi_uUQCLcB/s320/PHOTO_20170305_200214.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Box building time! I used the tools (drill and drill bits) that Zhang Yifeng gave to me. (Thanks again!)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-tECKHJnVaJc/WMiDEoiCYLI/AAAAAAAAGW4/edrCDunLzO0YN7mWVOUx2oVJBQ2dtPuBQCLcB/s1600/PHOTO_20170305_200225.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-tECKHJnVaJc/WMiDEoiCYLI/AAAAAAAAGW4/edrCDunLzO0YN7mWVOUx2oVJBQ2dtPuBQCLcB/s320/PHOTO_20170305_200225.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
I bought a black plastic box from Poundland (try to search for "battery box" on <a class="" href="https://rover.ebay.com/rover/1/710-53481-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338053273&mpre=http%3A%2F%2Fwww.ebay.co.uk%2Fsch%2Fi.html%3F_odkw%3Dbattery%2Bbox%2Bautomotive%26_sop%3D12%26_osacat%3D0%26_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3Dautomotive%2Bbattery%2Bbox%26_sacat%3D0">ebay</a>, the price is significant higher). The structure is quite thin, so, I needed something to reinforce it. Luckily, I got a plywood from my landlord (Adrian Chapman - Thanks!). I cut it to size using handsaw also from Poundland.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-hteN5Y38-_k/WMiDIkMaRwI/AAAAAAAAGW8/4h8QA3umpdwp_l4nyQ_lzfhzRMzfvurdwCLcB/s1600/PHOTO_20170305_200626.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-hteN5Y38-_k/WMiDIkMaRwI/AAAAAAAAGW8/4h8QA3umpdwp_l4nyQ_lzfhzRMzfvurdwCLcB/s320/PHOTO_20170305_200626.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
I use the plywood to strengthen the floor of the box. The UHU glue was used as a temporary adhesive to help me drill mounting holes.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-GOMx9elU0wE/WMiC1q_J4QI/AAAAAAAAGW0/wjnmHM31GL8H_UhI1_OYSgL8H2CCpdnYACLcB/s1600/PHOTO_20170305_200921.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-GOMx9elU0wE/WMiC1q_J4QI/AAAAAAAAGW0/wjnmHM31GL8H_UhI1_OYSgL8H2CCpdnYACLcB/s320/PHOTO_20170305_200921.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Time to 3D print some brackets. ;)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-Z8G0CbAuncw/WMiDSn_0_2I/AAAAAAAAGXA/FKJ1fez6Vv84sSq8ytHetlBgk6zGcbYUwCLcB/s1600/PHOTO_20170305_202321.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-Z8G0CbAuncw/WMiDSn_0_2I/AAAAAAAAGXA/FKJ1fez6Vv84sSq8ytHetlBgk6zGcbYUwCLcB/s320/PHOTO_20170305_202321.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
I also added some foam sheets underneath the box to help to distribute local mounting pressure. The goal was to avoid the box from cracking. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-yTtdm976vLs/WMiDu8N7kDI/AAAAAAAAGXE/_cZK8X9azWot6bzy4jvEv4ZvxOtguSf6wCLcB/s1600/PHOTO_20170305_202406.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-yTtdm976vLs/WMiDu8N7kDI/AAAAAAAAGXE/_cZK8X9azWot6bzy4jvEv4ZvxOtguSf6wCLcB/s320/PHOTO_20170305_202406.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Checking for dimension before drilling. My dad bought a rear bicycle rack for me, but, sadly, there are no mounting points on my bike, so, I had to buy a new rack. :/</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-PL9BEAYcNJE/WMiDx8-OPlI/AAAAAAAAGXI/nSYEDD6XCxMwhtjnrpdFwE96Egq-GTXDQCLcB/s1600/PHOTO_20170305_225109.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-PL9BEAYcNJE/WMiDx8-OPlI/AAAAAAAAGXI/nSYEDD6XCxMwhtjnrpdFwE96Egq-GTXDQCLcB/s320/PHOTO_20170305_225109.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
All holes were drilled and brackets were successfully mounted on the box and the rack.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-qhxGCdwFPKk/WMiD9ljqiHI/AAAAAAAAGXM/MDzqQ6qvFqw732T0-n5jZ8gqi-mv2DqyACLcB/s1600/PHOTO_20170305_230423.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-qhxGCdwFPKk/WMiD9ljqiHI/AAAAAAAAGXM/MDzqQ6qvFqw732T0-n5jZ8gqi-mv2DqyACLcB/s320/PHOTO_20170305_230423.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Testing for the rigidity of the bracket. Notice that I use dishwashing sponges as a temporary impact absorber (the battery was quite heavy). The wooden box was from Aldi's Clementines. So, it is a box within a box. ;)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-yFlnXmjhuaA/WMiESbgeLfI/AAAAAAAAGXU/ZLS6FNn78PQx0-VWTAZRv83iquEBEDyhACLcB/s1600/PHOTO_20170310_174338.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-yFlnXmjhuaA/WMiESbgeLfI/AAAAAAAAGXU/ZLS6FNn78PQx0-VWTAZRv83iquEBEDyhACLcB/s320/PHOTO_20170310_174338.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
All wiring is now done. I use cell level fuses because I had one experience where one cell shorts all other 7 cells and kill them all :(. I know I should be using bus bars, but, I ran out of copper wire, so, this should do it for now.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-FyMn0WKsbsg/WMiEQ2D8UbI/AAAAAAAAGXQ/a5cpR5TSeRQa8fSihzYAt48Tb6JjWRwqQCLcB/s1600/PHOTO_20170314_172908.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-FyMn0WKsbsg/WMiEQ2D8UbI/AAAAAAAAGXQ/a5cpR5TSeRQa8fSihzYAt48Tb6JjWRwqQCLcB/s320/PHOTO_20170314_172908.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is how it looks on the bike.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Overall, I am very pleased with how it turned to be. I think I like the 18650 more than pouch cells now. ;)</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I am planning to develop a low-cost non-dissipative active cell balancer in the future.</div>
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com4tag:blogger.com,1999:blog-6095764826828192506.post-80655042406096024952017-01-12T05:53:00.000+08:002017-01-12T05:53:00.441+08:00Harvesting 18650 Cells from "Dead" Laptop Batteries<div class="separator" style="clear: both; text-align: left;">
I have been using Hobbyking's "Multistar High Capacity 4S 8000mAh" batteries on my ebike for exactly three months and now it gets noticeably physically swelled.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The runtime has halved from what it used to and not to mention that it becomes more sensitive to ambient temperature.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I use my ebike to commute to work, so, a reliable transportation is a necessity for me.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Instead of buying another battery from Hobbyking, I figured, why not just try to use recycled 18650 cells from ebay?</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The seller claimed that the batteries are from some genuine manufacturers that have passed its toleratable capacity loss.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
This post is intended as a log on my progress for this project.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-gEKmdVpGpKo/WHahV-OZo1I/AAAAAAAAGMA/ftTLJ0Yr6zENA3N8U8awKn4_zMd4Nn-twCLcB/s1600/2017-01-11%2B18.31.50.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-gEKmdVpGpKo/WHahV-OZo1I/AAAAAAAAGMA/ftTLJ0Yr6zENA3N8U8awKn4_zMd4Nn-twCLcB/s320/2017-01-11%2B18.31.50.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Well packaged by the seller (bargainretailer1). I got it for £68 in the UK. I am sure I can find a better deal if I tried hard enough.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-0WVwIbTp9rc/WHahUoQyL1I/AAAAAAAAGL8/NSRwnBC9nksnvo5S50ngBDgWLIlVhhNCACLcB/s1600/2017-01-11%2B18.35.54.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-0WVwIbTp9rc/WHahUoQyL1I/AAAAAAAAGL8/NSRwnBC9nksnvo5S50ngBDgWLIlVhhNCACLcB/s320/2017-01-11%2B18.35.54.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
20 units of AS10D51 batteries exposed.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-u2FrZ_lLjlc/WHahzemPleI/AAAAAAAAGMI/7Ta-zhZnIa8j-rVhPRTOGowKi4KiIRcZwCLcB/s1600/2017-01-11%2B20.53.47.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-u2FrZ_lLjlc/WHahzemPleI/AAAAAAAAGMI/7Ta-zhZnIa8j-rVhPRTOGowKi4KiIRcZwCLcB/s320/2017-01-11%2B20.53.47.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
It was rated at 10.8V @ 4.2Ah in its previous life.</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-8Lgn8i6-FPs/WHahX8ueeFI/AAAAAAAAGME/X6SFCTSQjyUDIoXbmgFDz_2RjeoRxmWwgCLcB/s1600/2017-01-11%2B18.58.56.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-8Lgn8i6-FPs/WHahX8ueeFI/AAAAAAAAGME/X6SFCTSQjyUDIoXbmgFDz_2RjeoRxmWwgCLcB/s320/2017-01-11%2B18.58.56.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
First harvest! :)</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-Wt5xV_f1EOc/WHah1yjUIgI/AAAAAAAAGMM/44XVB63SDmQ4E-FfErdWEu0SiVGI1HC6wCLcB/s1600/2017-01-11%2B21.04.12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-Wt5xV_f1EOc/WHah1yjUIgI/AAAAAAAAGMM/44XVB63SDmQ4E-FfErdWEu0SiVGI1HC6wCLcB/s320/2017-01-11%2B21.04.12.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
All 120 pieces of 18650 Li-ion cells successfully extracted.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Simple resistive load test reveals 68 out of 120 cells were usable. Not sure if the other half can be recovered, so, maybe an update for a future post? ;)</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com1tag:blogger.com,1999:blog-6095764826828192506.post-67148927420471882052017-01-04T10:01:00.001+08:002017-01-04T10:01:28.834+08:003D Printed LiPo Battery Box for My Ebike<div class="separator" style="clear: both; text-align: left;">
Visit my Thingiverse repo to view the STL files: <a href="http://www.thingiverse.com/thing:2013381">http://www.thingiverse.com/thing:2013381</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both;">
Summary:</div>
<div class="separator" style="clear: both;">
-I printed this in Excelvan Coffee and Red ABS filaments</div>
<div class="separator" style="clear: both;">
-I use E3D Volcano (clone) to speed up print time, so, each part takes less than 90 minutes to print.</div>
<div class="separator" style="clear: both;">
-Designed in 123D Design.</div>
<div class="separator" style="clear: both;">
-The box was intended to be mounted on top of the bike frame.</div>
<div class="separator" style="clear: both;">
-Able to hold three 4S 8000mAh lipo and ten 18650 cells.</div>
<div class="separator" style="clear: both;">
-Took almost 1kg of ABS plastic</div>
<div class="separator" style="clear: both;">
-Parts are glued using acetone and super glue (parts named bracket)</div>
<div class="separator" style="clear: both;">
-Printer used was Wanhao Duplicator i3 aka Di3</div>
<div class="separator" style="clear: both;">
-Connections made by using XT60 and XT90 connectors</div>
<div class="separator" style="clear: both;">
-DB25 was used as balancing port</div>
<div class="separator" style="clear: both;">
-The box is secured in XYZ-axis</div>
<div class="separator" style="clear: both;">
-The Z-axis was secured using Nut Job: <a href="http://www.thingiverse.com/thing:193647">http://www.thingiverse.com/thing:193647</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-jdTAReXpkcY/WGxCEy3aINI/AAAAAAAAGGk/YM-Rrf5RRpM7Q3YV7L3psY0nCCO4g4ApwCLcB/s1600/2016-12-26%2B16.42.04.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-jdTAReXpkcY/WGxCEy3aINI/AAAAAAAAGGk/YM-Rrf5RRpM7Q3YV7L3psY0nCCO4g4ApwCLcB/s320/2016-12-26%2B16.42.04.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This was the old box, Rev1.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-gviGZSxnLbQ/WGxCS0ZykSI/AAAAAAAAGGo/pA9p2p9j1jMld0vupVOhSmQwMmDEerCEACLcB/s1600/2016-12-30%2B01.28.43.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-gviGZSxnLbQ/WGxCS0ZykSI/AAAAAAAAGGo/pA9p2p9j1jMld0vupVOhSmQwMmDEerCEACLcB/s320/2016-12-30%2B01.28.43.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Printed bottom pieces with its brackets.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-rPeV_BJUXSo/WGxCTx-tyYI/AAAAAAAAGGs/VEv4OWuiJVIaqinC7-spCemCAqY5HHyrwCLcB/s1600/2016-12-30%2B01.31.47.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-rPeV_BJUXSo/WGxCTx-tyYI/AAAAAAAAGGs/VEv4OWuiJVIaqinC7-spCemCAqY5HHyrwCLcB/s320/2016-12-30%2B01.31.47.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Aligning it before glueing.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-Wparma2_cYo/WGxCb5-MJ1I/AAAAAAAAGGw/vpXdiC3oMGEpwKJy0EculeuTRboIQYNMACLcB/s1600/2016-12-30%2B01.37.53.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-Wparma2_cYo/WGxCb5-MJ1I/AAAAAAAAGGw/vpXdiC3oMGEpwKJy0EculeuTRboIQYNMACLcB/s320/2016-12-30%2B01.37.53.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Mounting bracket using super glue as "tack weld".</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-HQJ600xciJA/WGxDALNeaoI/AAAAAAAAGG8/g6m9GfzJMaEwH6-KRARdQasaubrFFvaXgCLcB/s1600/2016-12-30%2B01.45.25.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-HQJ600xciJA/WGxDALNeaoI/AAAAAAAAGG8/g6m9GfzJMaEwH6-KRARdQasaubrFFvaXgCLcB/s320/2016-12-30%2B01.45.25.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Waiting for the super glue to dry.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-heIgeCPdfPE/WGxC5QPkpsI/AAAAAAAAGG4/4VZ4HobtpAQo7oenU-95XkDBndDpRfxswCLcB/s1600/2016-12-30%2B01.51.13.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-heIgeCPdfPE/WGxC5QPkpsI/AAAAAAAAGG4/4VZ4HobtpAQo7oenU-95XkDBndDpRfxswCLcB/s320/2016-12-30%2B01.51.13.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Tack the other half.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-lzD1uUbjKvk/WGxDVWJ0xuI/AAAAAAAAGHA/VoIW_R8kOgIDd6NxkNbwC4DVXsCPXxVJwCLcB/s1600/2016-12-30%2B01.54.23.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-lzD1uUbjKvk/WGxDVWJ0xuI/AAAAAAAAGHA/VoIW_R8kOgIDd6NxkNbwC4DVXsCPXxVJwCLcB/s320/2016-12-30%2B01.54.23.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Ready to be acetone-welded.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-90MK0JTapPc/WGxDqIRoC9I/AAAAAAAAGHI/fUT1AiGktw0z_q0KnzGODXnI6vhmdiMxACLcB/s1600/2016-12-30%2B01.54.32.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-90MK0JTapPc/WGxDqIRoC9I/AAAAAAAAGHI/fUT1AiGktw0z_q0KnzGODXnI6vhmdiMxACLcB/s320/2016-12-30%2B01.54.32.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Close-up of parts interface before acetone-weld.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-5hhlKU6pOhs/WGxDujChmMI/AAAAAAAAGHM/7H5ynIlBou496SW1F3Q0-RxhokOkCQmyACLcB/s1600/2016-12-30%2B01.54.45.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-5hhlKU6pOhs/WGxDujChmMI/AAAAAAAAGHM/7H5ynIlBou496SW1F3Q0-RxhokOkCQmyACLcB/s320/2016-12-30%2B01.54.45.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Another close-up.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-KE6cJRAPkek/WGxEMIh-luI/AAAAAAAAGHU/-tCET5d2-RAkILhWO3rkIvTgYccn8hWFwCLcB/s1600/2016-12-30%2B01.57.00.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-KE6cJRAPkek/WGxEMIh-luI/AAAAAAAAGHU/-tCET5d2-RAkILhWO3rkIvTgYccn8hWFwCLcB/s320/2016-12-30%2B01.57.00.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Bottom view.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-VaU0pzM9YvM/WGxEazoPMQI/AAAAAAAAGHc/62_AibgoPmUTmyPbnIsvSMEIc5-OVFnDwCLcB/s1600/2016-12-30%2B01.57.14.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-VaU0pzM9YvM/WGxEazoPMQI/AAAAAAAAGHc/62_AibgoPmUTmyPbnIsvSMEIc5-OVFnDwCLcB/s320/2016-12-30%2B01.57.14.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Bottom close-up.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-X205Ah8wxzw/WGxEZILPYpI/AAAAAAAAGHY/1iTpu_iEYVwFK4Y9XGeCo7zuD5fezFbOACLcB/s1600/2016-12-30%2B01.59.22.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-X205Ah8wxzw/WGxEZILPYpI/AAAAAAAAGHY/1iTpu_iEYVwFK4Y9XGeCo7zuD5fezFbOACLcB/s320/2016-12-30%2B01.59.22.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Using plastic tube from q-tip to spread the acetone.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-LX0Q4lxaEvQ/WGxE-G8R8ZI/AAAAAAAAGHk/S-DOA9gUtXwnvzUDaUP0ddqKn8ta3nYewCLcB/s1600/2016-12-30%2B02.02.09.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-LX0Q4lxaEvQ/WGxE-G8R8ZI/AAAAAAAAGHk/S-DOA9gUtXwnvzUDaUP0ddqKn8ta3nYewCLcB/s320/2016-12-30%2B02.02.09.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
First weld, woot woot!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-O5UUtQI64eU/WGxFG0tDx0I/AAAAAAAAGHs/RXFREkfi46Ed5dqdX2xeyub7yr3exqjxwCLcB/s1600/2016-12-30%2B03.55.47.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-O5UUtQI64eU/WGxFG0tDx0I/AAAAAAAAGHs/RXFREkfi46Ed5dqdX2xeyub7yr3exqjxwCLcB/s320/2016-12-30%2B03.55.47.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Welded interface side close-up.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-bIJR2gQDETc/WGxFOxK8fdI/AAAAAAAAGHw/wZERqx_sYM0dcrU5MIwhVy8dXwO162_mQCLcB/s1600/2016-12-30%2B03.56.10.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-bIJR2gQDETc/WGxFOxK8fdI/AAAAAAAAGHw/wZERqx_sYM0dcrU5MIwhVy8dXwO162_mQCLcB/s320/2016-12-30%2B03.56.10.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Welded interface centre close-up.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-Ui5AWxx_7iE/WGxF6jgbNsI/AAAAAAAAGIA/XDX6pp593E86EvI3z4foCLZKhQycDFEIwCLcB/s1600/2016-12-30%2B03.57.28.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-Ui5AWxx_7iE/WGxF6jgbNsI/AAAAAAAAGIA/XDX6pp593E86EvI3z4foCLZKhQycDFEIwCLcB/s320/2016-12-30%2B03.57.28.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Outside view.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-R7AWhjCwCts/WGxGbWxYUJI/AAAAAAAAGIM/nWPTevzpdwQgpPnvTCsq1E-hZUd0Jq-jACLcB/s1600/2016-12-30%2B04.03.40.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-R7AWhjCwCts/WGxGbWxYUJI/AAAAAAAAGIM/nWPTevzpdwQgpPnvTCsq1E-hZUd0Jq-jACLcB/s320/2016-12-30%2B04.03.40.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Added another bracket (simple rectangle) to reinforce the joint.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-LncWnalIr4c/WGxHBlGqF3I/AAAAAAAAGIY/f619gF8OIkY6n8LmhnJGtBxmFntALKy5QCLcB/s1600/2016-12-30%2B05.49.38.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-LncWnalIr4c/WGxHBlGqF3I/AAAAAAAAGIY/f619gF8OIkY6n8LmhnJGtBxmFntALKy5QCLcB/s320/2016-12-30%2B05.49.38.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The only part of the box that needs support.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-q8sdMYyXne0/WGxHLMGaM_I/AAAAAAAAGIg/9arhY_wIrFMeZ6Ax9eWZgeArTNIMPFCQACLcB/s1600/2016-12-30%2B05.52.06.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-q8sdMYyXne0/WGxHLMGaM_I/AAAAAAAAGIg/9arhY_wIrFMeZ6Ax9eWZgeArTNIMPFCQACLcB/s320/2016-12-30%2B05.52.06.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Not impressed with the surface finish. :(</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-PRmg_z1NwqM/WGxHiado_sI/AAAAAAAAGIk/i60e6fvSMHUlpmq2NznS8mbz_yqySL91wCLcB/s1600/2016-12-30%2B06.25.09.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-PRmg_z1NwqM/WGxHiado_sI/AAAAAAAAGIk/i60e6fvSMHUlpmq2NznS8mbz_yqySL91wCLcB/s320/2016-12-30%2B06.25.09.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Trying to place the batteries inside, hey, it fits! :)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-_mDl6vEj1PY/WGxH8za7RiI/AAAAAAAAGIw/b5x2ujqXtB4pDhHIZuavnvvp-r8WVupyACLcB/s1600/2016-12-30%2B08.25.58.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-_mDl6vEj1PY/WGxH8za7RiI/AAAAAAAAGIw/b5x2ujqXtB4pDhHIZuavnvvp-r8WVupyACLcB/s320/2016-12-30%2B08.25.58.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Both top and bottom fits nicely. The DB25 is for voltage balancing.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-oeSqyPk8Ddo/WGxH9tupe-I/AAAAAAAAGI0/qnOCZB9XwRQY7e5L9vz4bLhjwesJTVjDwCLcB/s1600/2016-12-30%2B11.18.46.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-oeSqyPk8Ddo/WGxH9tupe-I/AAAAAAAAGI0/qnOCZB9XwRQY7e5L9vz4bLhjwesJTVjDwCLcB/s320/2016-12-30%2B11.18.46.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
How the ABS melted? In first minute, it appears white.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-Y886573VPr4/WGxInpRs7mI/AAAAAAAAGJA/saAfW9dfaK84Yz3uXs1gv-l70anrhTGhQCLcB/s1600/2016-12-30%2B21.34.49.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-Y886573VPr4/WGxInpRs7mI/AAAAAAAAGJA/saAfW9dfaK84Yz3uXs1gv-l70anrhTGhQCLcB/s320/2016-12-30%2B21.34.49.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
After 10 minutes, the white turns transparent.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-LmiCDg4wHg8/WGxI0aqZqnI/AAAAAAAAGJI/u3Ec6mhBmJoZp-3xJGZgh6P_3w2-LqcPACLcB/s1600/2016-12-31%2B00.40.30.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-LmiCDg4wHg8/WGxI0aqZqnI/AAAAAAAAGJI/u3Ec6mhBmJoZp-3xJGZgh6P_3w2-LqcPACLcB/s320/2016-12-31%2B00.40.30.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Now, I have to disassemble my old battery. (Got from a friend, thank you <a href="https://www.facebook.com/moriarty.cheung">Zhang</a>!)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-D59zAvoW0Mg/WGxJU1PXo1I/AAAAAAAAGJU/Hi4Olk3IQ7U_i3xCPX1oTq-MaZXhZ_RRACLcB/s1600/2016-12-31%2B01.09.11.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-D59zAvoW0Mg/WGxJU1PXo1I/AAAAAAAAGJU/Hi4Olk3IQ7U_i3xCPX1oTq-MaZXhZ_RRACLcB/s320/2016-12-31%2B01.09.11.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Looks good to me.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-7pPaOmBZjgw/WGxJQy9RYEI/AAAAAAAAGJQ/u38NpBGnIE4sUuykguOR5l0egJHMwhK3gCLcB/s1600/2016-12-31%2B02.08.31.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-7pPaOmBZjgw/WGxJQy9RYEI/AAAAAAAAGJQ/u38NpBGnIE4sUuykguOR5l0egJHMwhK3gCLcB/s320/2016-12-31%2B02.08.31.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The only bike mount that needs support.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-vzc7UODNkcU/WGxJqPGUGqI/AAAAAAAAGJc/c1fqhswZF1INDnNMfyrwz-9vvFAwzW1nACLcB/s1600/2016-12-31%2B02.14.21.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-vzc7UODNkcU/WGxJqPGUGqI/AAAAAAAAGJc/c1fqhswZF1INDnNMfyrwz-9vvFAwzW1nACLcB/s320/2016-12-31%2B02.14.21.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Side view of the bracket.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-NwiF5DH-Ipw/WGxKLnhhPVI/AAAAAAAAGJo/Qp75wBFLtkw_Fdv_bJG8ldYbiCtC6l4dgCLcB/s1600/2016-12-31%2B02.14.40.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-NwiF5DH-Ipw/WGxKLnhhPVI/AAAAAAAAGJo/Qp75wBFLtkw_Fdv_bJG8ldYbiCtC6l4dgCLcB/s320/2016-12-31%2B02.14.40.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Fits nicely to the box.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-mhceM_VN38k/WGxKOToxY4I/AAAAAAAAGJs/cZ-QJ0fTaJEUP3R6XNC9RS9OIiutvassQCLcB/s1600/2016-12-31%2B06.28.41.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-mhceM_VN38k/WGxKOToxY4I/AAAAAAAAGJs/cZ-QJ0fTaJEUP3R6XNC9RS9OIiutvassQCLcB/s320/2016-12-31%2B06.28.41.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Another bike mount.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-DZ7COxZyzLU/WGxKTVZI4wI/AAAAAAAAGJw/yZ2Xd9jqxgISxHkPUTG6F_IYDEVH8COeACLcB/s1600/2017-01-03%2B02.06.58.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-DZ7COxZyzLU/WGxKTVZI4wI/AAAAAAAAGJw/yZ2Xd9jqxgISxHkPUTG6F_IYDEVH8COeACLcB/s320/2017-01-03%2B02.06.58.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Installed on my ebike.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The box now contains 14S battery. I plan to add some switching power regulator for other accessories.</div>
<div class="separator" style="clear: both; text-align: left;">
It is not the prettiest project in the world, but hey, it works.</div>
<div class="separator" style="clear: both; text-align: left;">
Next project would be to build a cell voltage balancer. ;)</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com3tag:blogger.com,1999:blog-6095764826828192506.post-72471636113865013312016-12-03T05:50:00.000+08:002016-12-04T22:45:49.677+08:00Reverse Engineering CRCs?I was working on deciphering a lot of communication protocols lately and I had to write several tedious Python-based brute-force algorithms. Within minutes, I soon realised that it is beyond me to do it. Since I am not an expert in error detection, I had to try to google it to see if someone else that are clever than me already done the same thing.<br />
<br />
Then I found this post:<br />
<a href="http://stackoverflow.com/questions/18890771/crc-craking-knowing-result%C2%A0">http://stackoverflow.com/questions/18890771/crc-craking-knowing-result </a><br />
<br />
<br />
I decided to give it go by downloading it from here:<br />
<a href="https://sourceforge.net/projects/reveng/">https://sourceforge.net/projects/reveng/</a><br />
<br />
<br />
I then proceeded to test it by key-in "<b>reveng -w 16 -s 9876543210B283 01234567896282</b>" in the shell to test for packet 9876543210B283 and 01234567896282 with xmodem.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-waysJyPCAk0/WEHrDZds9JI/AAAAAAAAGCU/TnDI0ZVjqNMepMiR9qvp9L8zj0e2xUBPQCLcB/s1600/crc1.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="273" src="https://4.bp.blogspot.com/-waysJyPCAk0/WEHrDZds9JI/AAAAAAAAGCU/TnDI0ZVjqNMepMiR9qvp9L8zj0e2xUBPQCLcB/s320/crc1.PNG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-LH8riylM2M4/WEHrDpervYI/AAAAAAAAGCc/CiSxgGFY0IkzRdGHGTyQoK4PmVHYf7awACLcB/s1600/crc2.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="276" src="https://1.bp.blogspot.com/-LH8riylM2M4/WEHrDpervYI/AAAAAAAAGCc/CiSxgGFY0IkzRdGHGTyQoK4PmVHYf7awACLcB/s320/crc2.PNG" width="320" /></a></div>
<br />
<br />
I generate the CRC from here:<br />
<a href="https://www.lammertbies.nl/comm/info/crc-calculation.html">https://www.lammertbies.nl/comm/info/crc-calculation.html</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="" style="clear: both; text-align: left;">
To run the program, simply open command prompt in the same directory as reveng.exe (I did it by Shift+Right Click in Windows).</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-DYLkNxCaw7A/WEHpD5wxdqI/AAAAAAAAGCI/Ub7qo6RLxTcsFn1KOUr1rhyvlSB_zMLTgCLcB/s1600/crc3.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="215" src="https://2.bp.blogspot.com/-DYLkNxCaw7A/WEHpD5wxdqI/AAAAAAAAGCI/Ub7qo6RLxTcsFn1KOUr1rhyvlSB_zMLTgCLcB/s320/crc3.PNG" width="320" /></a></div>
<div class="" style="clear: both; text-align: left;">
The result is:</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-OTX2TDsmSYg/WEHrDpSswPI/AAAAAAAAGCY/x4dqu7FNMDAiJjAx_F0BZgWo6vhyZBfpACLcB/s1600/crc4.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="66" src="https://3.bp.blogspot.com/-OTX2TDsmSYg/WEHrDpSswPI/AAAAAAAAGCY/x4dqu7FNMDAiJjAx_F0BZgWo6vhyZBfpACLcB/s400/crc4.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
As you can see, RevEng successfully reverse engineered the given packets!</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Many thanks to Mark Adler for introducing me to RevEng and Greg Cook for creating it!</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-29636675656834334822015-10-10T17:42:00.003+08:002015-10-10T17:42:36.068+08:00Failed Attempts of 3D Printing a Hydroxy Gas Generator End CapI have been experimenting with a lot of hydroxy (a.k. a.
Brown’s Gas) generator in my past. Back then, before I acquired a 3D printer,
the only possible design was plate-based build, tubular designs are a little
bit harder to build as at that moment of building it, I could not find a proper
material to seal water leaks.<br />
<br />
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
The versatility of the printer motivates me to revisit my
design. I sketched it using both SketchUp and 123D Design CAD program. I
uploaded the stl file to Thingiverse to those who interested. Bear in mind the
design are far from perfect. I sketch it just to stress-test my printer and the
ABS filament.<o:p></o:p></div>
<div class="MsoNormal">
The print took around seven hours to complete.
Unfortunately, all of my attempts failed.<o:p></o:p></div>
<div class="MsoNormal">
The failure includes broken spacers, dimension error, severe
water leak and bad prints (especially bridges).<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
The first attempt was designed with a male-fitting so that a
pipe could slide into it easily. As visible in the pictures, the print failed
as my settings are not optimized to print bridges.<o:p></o:p></div>
<div class="MsoNormal">
So I redesign it, this time, using BST threaded (awesome Nut
Job Customizer from Thingiverse!) hole, to accommodate a typical water filter
plastic fitting. Again, even with print-support enabled, the printed thread is
just not usable.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Some pictures:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-PhysTTeIbsY/VhjFefuJCdI/AAAAAAAAFd8/t_SqGL-h_AY/s1600/P_20150831_071525.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/-PhysTTeIbsY/VhjFefuJCdI/AAAAAAAAFd8/t_SqGL-h_AY/s320/P_20150831_071525.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
2nd design, with plastic fitting. The end cap with orange tube attached.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-EvjfrznVaGo/VhjFcP7yQSI/AAAAAAAAFd8/TPSgphg9EHc/s1600/P_20150825_161700.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/-EvjfrznVaGo/VhjFcP7yQSI/AAAAAAAAFd8/TPSgphg9EHc/s320/P_20150825_161700.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Top view: After all of the tubes assembled.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-3-wi5XjQfOY/VhjFb4sr6-I/AAAAAAAAFd8/dklWc9NreYY/s1600/P_20150825_161638.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://3.bp.blogspot.com/-3-wi5XjQfOY/VhjFb4sr6-I/AAAAAAAAFd8/dklWc9NreYY/s320/P_20150825_161638.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Side view: Notice the anode lead in red.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-o4qW6mJd_2U/VhjFbaHKxTI/AAAAAAAAFd8/9PIiwyp9kcU/s1600/P_20150825_161316.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-o4qW6mJd_2U/VhjFbaHKxTI/AAAAAAAAFd8/9PIiwyp9kcU/s320/P_20150825_161316.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Before tubes getting installed.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vyeamfgrgGk/VhjFamLfbOI/AAAAAAAAFd8/OZXZxZQ6cyY/s1600/P_20150825_155112.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-vyeamfgrgGk/VhjFamLfbOI/AAAAAAAAFd8/OZXZxZQ6cyY/s320/P_20150825_155112.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
1st design, with printed exit tube on top left corner.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoNormal">
On all of my prints, tube spacers are very fragile and can be easily broke in the z-direction.<o:p></o:p></div>
<div class="MsoNormal">
After tinkering with it long enough, I decided that it is my ABS filament being the culprit.<o:p></o:p></div>
<br />
<div class="MsoNormal">
My adventure stops here for now. Printing with ABS is very challenging, even with heated bed used, the warping is inevitable. Not to mention my questionable ABS filament quality, the optimum extruder temperature is at 200 degree celcius, any higher will cause the surface finish to suffer and the print becomes brittle. I will revisit this in the future, this time, I might use a better quality PETG filament instead. </div>
<div class="MsoNormal">
<br /></div>
Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-64635156450276851372015-10-10T17:36:00.000+08:002015-10-10T17:36:14.378+08:00Toothpaste: Emergency Thermal Paste?I needed to test my <a href="https://www.facebook.com/moriarty.cheung">colleague</a> (Zhang Yifeng) 30W LED chip, he gave me a set of LiPo battery, an LED chip, and a heatsink - without the thermal paste.<br />
<br />
With no proper paste in hand, I give toothpaste a try:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-9St1nxZ-YgM/VhjFf2hd-pI/AAAAAAAAFd8/-Ittof3y0WQ/s1600/P_20150925_184028.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-9St1nxZ-YgM/VhjFf2hd-pI/AAAAAAAAFd8/-Ittof3y0WQ/s320/P_20150925_184028.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Pretty sure the double action was meant for teeth cleaning. :D</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Just bear in mind that this is meant for temporary solution. Most toothpaste are a weak basic and it could potentially slowly etch aluminum surface. </div>
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-1821866775640514272015-10-10T17:28:00.001+08:002015-10-10T17:28:32.114+08:00Better Filament Spool Holder for 3D Printer?I 3d print a lot lately, and, I noticed that my current spool holder is giving too much friction that my extruder unable to handle it.<br />
<br />
This causes inconsistent extrusion width, which fails most of my print.<br />
<br />
While searching for a decent bearing to retrofit to my holder, I found a dead automotive radiator fan sitting in my junk box.<br />
<br />
Having a still functioning bearing, I give it a go:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-bMre15EACd0/VhjFTtVzWrI/AAAAAAAAFd8/nve3qyqn9s0/s1600/P_20150803_215747_p.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-bMre15EACd0/VhjFTtVzWrI/AAAAAAAAFd8/nve3qyqn9s0/s400/P_20150803_215747_p.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
My new horizontal filament spool holder. :D</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
It is my best holder so far. ;)</div>
<br />
Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-45904618443329096532015-10-10T17:16:00.003+08:002015-10-10T17:18:57.828+08:00DIY Arduino-powered 3D Printed Automotive Exhaust Gas AnalyzerI have done a lot of research and experiments on internal combustion engines (ICE) and most of them are themed for emission reduction and promoting better fuel economy. Until now, I have no way of knowing how effective my experiments are. Other than having to drive it for a week (to gauge fuel usage), I used to rely on my body senses (e.g. acceleration, smell, heat, noise, etc.) to approximate the results. <br />
<br />
This is of course not a reliable way of collecting data, not to mention that it might even get effected by placebo effect. <br />
<br />
Buying a commercial gas analyser is way beyond my budget. I finally constructed one for my own use. <br />
<br />
I use three gas sensors; carbon monoxide, hydrocarbon, and oxygen sensor. The fourth one is a simple thermometer. The link on where I got all this is listed at the end of this post. <br />
For the body, I sketch it using SketchUp, export the stl file, and printed on my FFF 3D-printer. The material of choice is ABS as PLA is too brittle for my purposes. The print took six hours to complete with 200 microns of resolution. <br />
<br />
Since this will be operated at a relatively low pressure, for leak-free operation, I use hot-glue to secure all sensors. <br />
<br />
I design it so that it can be fitted with off-the-shelf PVC pipe. This allows more flexibility. Each of the gas sensors are spatially separated by 120 degrees to give it an equal gas exposure. <br />
All of the sensor need to be preheated by at least five minutes prior usage. Oxygen sensor consumed most of the supply current. Total power consumption is just under 1A at 12V. I use an SMPS power adapter I found lying around on my table. <br />
<br />
To display the readout, I use a cheap compatible arduino uno and a 1602 LCD enclosed in a laser cut jiffy box. Using build-in library, the program is just a few ADC readings and LCD print function. I also included serial UART data transmission for easy data logging. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-cZimdu-3fec/VhjFRhlAJjI/AAAAAAAAFd8/cSjjypgNoPs/s912-Ic42/P_20150703_202532_HDR.jpg" width="636" /> <br />
Testing 3d printed nut on my oxygen sensor. <br />
<br />
The following is my failed attempts: <br />
<img height="480" src="https://lh3.googleusercontent.com/-BxVo23ezE7Y/VhjFRtYsjwI/AAAAAAAAFd8/IGkLRdGe_KY/s912-Ic42/P_20150705_172455_HDR.jpg" width="636" /> <br />
I had to stop printing as the warping getting worse over time. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-IJp1sHO3gfk/VhjFRubP0rI/AAAAAAAAFd8/hTdJiFpBZOk/s912-Ic42/P_20150705_172736_HDR.jpg" width="636" /> <br />
Parts overview. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-mUBMMr-1Q2Q/VhjFSQFj1sI/AAAAAAAAFd8/5g0BWLXeUGI/s912-Ic42/P_20150705_172750_HDR.jpg" width="636" /> <br />
Close up: layer delamination and print warping. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-6D4QTOhroN4/VhjFShy_yeI/AAAAAAAAFd8/syMvboHGdPU/s912-Ic42/P_20150705_172804.jpg" width="636" /> <br />
Another view. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-F70LV5LTJtM/VhjFS_sCjtI/AAAAAAAAFd8/a0fpVnv8l_o/s912-Ic42/P_20150705_172821.jpg" width="636" /> <br />
Broken piece. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-RtuVWBmNre4/VhjFTGqJ5yI/AAAAAAAAFd8/xkZQqJESnA8/s720-Ic42/P_20150705_173053.jpg" width="363" /> <br />
Dimension error. <br />
<br />
After some iteration, I manage to get a working model. <br />
<img height="480" src="https://lh3.googleusercontent.com/-9DUEiKs_CEs/VhjFW-iE0VI/AAAAAAAAFd8/E74ShH8iDUo/s912-Ic42/P_20150814_173050.jpg" width="636" /> <br />
The model being printed. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-gKsju42JHRE/VhjFXGosLPI/AAAAAAAAFd8/t0RkBNU9i_s/s912-Ic42/P_20150814_232957.jpg" width="636" /> <br />
This is my attempt of coloring my print using permanent marker. It turns out to be quite effective. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-8oYTaaVFtc4/VhjFXXUoE0I/AAAAAAAAFd8/RRAxR4LgeF0/s912-Ic42/P_20150815_005948.jpg" width="636" /> <br />
Mounting all of the sensor. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-A0ejI7MzH5M/VhjFX5Q48SI/AAAAAAAAFd8/y4vt8zA8gxQ/s912-Ic42/P_20150815_010030.jpg" width="636" /> <br />
Side view. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-E-ymgQ4Lfwk/VhjFYNeV3HI/AAAAAAAAFd8/OPR_EWgsjHQ/s912-Ic42/P_20150815_010635.jpg" width="636" /> <br />
A PVC pipe mounted. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-Puheh-_dWPw/VhjFY8GagLI/AAAAAAAAFd8/r0mvzzZwPtE/s912-Ic42/P_20150816_041206.jpg" width="636" /> <br />
Test sketch working! <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-2Qv5GkUHYLI/VhjFZe_g4vI/AAAAAAAAFd8/M_7b4x5zfAc/s912-Ic42/P_20150816_084137.jpg" width="636" /> <br />
Enclosed in a jiffy box. <br />
<br />
<img height="480" src="https://lh3.googleusercontent.com/-F1vM2WPg5sU/VhjFfKdP9HI/AAAAAAAAFd8/--uR5SqpgAw/s912-Ic42/P_20150831_232432.jpg" width="636" /> <br />
Tested on my dad’s diesel car. <img alt="Open-mouthed smile" class="wlEmoticon wlEmoticon-openmouthedsmile" src="http://lh3.googleusercontent.com/-zLex8WqVBS0/VhjXDmhcoHI/AAAAAAAAFeM/lbABGgqrHeA/wlEmoticon-openmouthedsmile%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" /> <br />
<br />
Utilising an arduino might be overkill for such a simple task. My only reason of using it is because it is cheaper to use compared to my DIY version of PIC MCUs board (that includes voltage regulators, external UART, reset button, etc.). The only way I can make my DIY PIC MCU dev board cheaper is to build it in large quantity, which is not really something that I want to dive into right now. <br />
<br />
Links:<br />
<br />
<a href="http://www.banggood.com/O2-Oxygen-Sensor-p-951596.html?p=3117141642416201505D" title="http://www.banggood.com/O2-Oxygen-Sensor-p-951596.html?p=3117141642416201505D">http://www.banggood.com/O2-Oxygen-Sensor-p-951596.html?p=3117141642416201505D</a> <br />
<br />
<a href="http://www.banggood.com/MQ-135-Car-Air-Quality-Sensor-Hazardous-Harmful-Gases-Detection-p-918785.html?p=3117141642416201505D" title="http://www.banggood.com/MQ-135-Car-Air-Quality-Sensor-Hazardous-Harmful-Gases-Detection-p-918785.html?p=3117141642416201505D">http://www.banggood.com/MQ-135-Car-Air-Quality-Sensor-Hazardous-Harmful-Gases-Detection-p-918785.html?p=3117141642416201505D</a> <br />
<br />
<a href="http://www.banggood.com/MQ-7-MQ7-CO-Carbon-Monoxide-Gas-Sensor-Module-For-Arduino-Compatible-p-915474.html?p=3117141642416201505D" title="http://www.banggood.com/MQ-7-MQ7-CO-Carbon-Monoxide-Gas-Sensor-Module-For-Arduino-Compatible-p-915474.html?p=3117141642416201505D">http://www.banggood.com/MQ-7-MQ7-CO-Carbon-Monoxide-Gas-Sensor-Module-For-Arduino-Compatible-p-915474.html?p=3117141642416201505D</a> <br />
<br />
<a href="http://www.banggood.com/Wholesale-Aquarium-LCD-Digital-Thermometer-Fish-Tank-Water-Digital-Thermometer-p-27797.html?p=3117141642416201505D" title="http://www.banggood.com/Wholesale-Aquarium-LCD-Digital-Thermometer-Fish-Tank-Water-Digital-Thermometer-p-27797.html?p=3117141642416201505D">http://www.banggood.com/Wholesale-Aquarium-LCD-Digital-Thermometer-Fish-Tank-Water-Digital-Thermometer-p-27797.html?p=3117141642416201505D</a><br />
<br />
<a href="http://www.banggood.com/Wholesale-Aquarium-LCD-Digital-Thermometer-Fish-Tank-Water-Digital-Thermometer-p-27797.html?p=3117141642416201505D" title="http://www.banggood.com/Wholesale-Aquarium-LCD-Digital-Thermometer-Fish-Tank-Water-Digital-Thermometer-p-27797.html?p=3117141642416201505D">http://www.banggood.com/Wholesale-Aquarium-LCD-Digital-Thermometer-Fish-Tank-Water-Digital-Thermometer-p-27797.html?p=3117141642416201505D</a><br />
<br />
<a href="http://www.aliexpress.com/item/high-quality-UNO-R3-MEGA328P-for-Arduino-UNO-R3-NO-USB-CABLE/1986980366.html?spm=2114.01020208.3.2.maFLGf&ws_ab_test=201556_7,201527_1_71_72_73_74_75,201560_2" title="http://www.aliexpress.com/item/high-quality-UNO-R3-MEGA328P-for-Arduino-UNO-R3-NO-USB-CABLE/1986980366.html?spm=2114.01020208.3.2.maFLGf&ws_ab_test=201556_7,201527_1_71_72_73_74_75,201560_2">http://www.aliexpress.com/item/high-quality-UNO-R3-MEGA328P-for-Arduino-UNO-R3-NO-USB-CABLE/1986980366.html?spm=2114.01020208.3.2.maFLGf&ws_ab_test=201556_7,201527_1_71_72_73_74_75,201560_2</a><br />
<br />
<a href="http://www.thingiverse.com/thing:1064339" title="http://www.thingiverse.com/thing:1064339">http://www.thingiverse.com/thing:1064339</a>Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com7tag:blogger.com,1999:blog-6095764826828192506.post-35951612760764182292015-07-09T04:00:00.001+08:002015-07-09T04:00:09.230+08:00My ESP8266 ESP12 Breadboard Adapter<p dir="ltr">Pictures explain it all. :) </p>
<div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-WfvJHcwoT58/VZ2BGaGFzYI/AAAAAAAAFV8/0YBwn8PkTys/s1600/P_20150707_093726.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-WfvJHcwoT58/VZ2BGaGFzYI/AAAAAAAAFV8/0YBwn8PkTys/s640/P_20150707_093726.jpg"> </a> </div><div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-mDn7smtxAng/VZ2BICe3PzI/AAAAAAAAFWE/wt7Xu8CZ6mo/s1600/P_20150707_123540.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-mDn7smtxAng/VZ2BICe3PzI/AAAAAAAAFWE/wt7Xu8CZ6mo/s640/P_20150707_123540.jpg"> </a> </div><div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-Rkp3UUiOIII/VZ2BKt3q3bI/AAAAAAAAFWM/XPHUCZCRcC8/s1600/P_20150707_123607.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-Rkp3UUiOIII/VZ2BKt3q3bI/AAAAAAAAFWM/XPHUCZCRcC8/s640/P_20150707_123607.jpg"> </a> </div><div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-F47xQKrP-yw/VZ2BMzp-UJI/AAAAAAAAFWU/HWnNCN-ruH0/s1600/P_20150707_123634.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-F47xQKrP-yw/VZ2BMzp-UJI/AAAAAAAAFWU/HWnNCN-ruH0/s640/P_20150707_123634.jpg"> </a> </div><div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-v8tIo_cdpG0/VZ2BOTwblVI/AAAAAAAAFWc/kLcS8Gzj26I/s1600/P_20150707_123706.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-v8tIo_cdpG0/VZ2BOTwblVI/AAAAAAAAFWc/kLcS8Gzj26I/s640/P_20150707_123706.jpg"> </a> </div><div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-G7NOnrnN46I/VZ2BQD7sFRI/AAAAAAAAFWk/qkntJruNKgQ/s1600/P_20150707_123721.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-G7NOnrnN46I/VZ2BQD7sFRI/AAAAAAAAFWk/qkntJruNKgQ/s640/P_20150707_123721.jpg"> </a> </div><div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-SgvmYSlCaGw/VZ2BRmyx2DI/AAAAAAAAFWs/UStrlEYnz7g/s1600/P_20150707_123743.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-SgvmYSlCaGw/VZ2BRmyx2DI/AAAAAAAAFWs/UStrlEYnz7g/s640/P_20150707_123743.jpg"> </a> </div>Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0Taman Rasmi Jaya, Taman Rasmi Jaya3.153206 101.77019tag:blogger.com,1999:blog-6095764826828192506.post-21006144740534142472015-07-05T17:58:00.001+08:002015-07-25T03:40:54.494+08:00My 3D Printing Experience<iframe allowfullscreen="" frameborder="0" height="344" src="https://www.youtube.com/embed/5SrR6tkVq7c" width="459"></iframe><br><br>
<br><br>
Most of the post here will be filled with failures.<div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-Nt7PdyZRzWg/VaE4YhxVOhI/AAAAAAAAFXE/pLH546oStzk/s1600/P_20150711_233649.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-Nt7PdyZRzWg/VaE4YhxVOhI/AAAAAAAAFXE/pLH546oStzk/s640/P_20150711_233649.jpg"> </a> </div><div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-NF_xHHODx2w/VbKQd72WeSI/AAAAAAAAFXs/V2kFwN1l51o/s1600/P_20150725_032100.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-NF_xHHODx2w/VbKQd72WeSI/AAAAAAAAFXs/V2kFwN1l51o/s640/P_20150725_032100.jpg"> </a> </div><div class="separator" style="clear: both; text-align: center;"> <a href="http://lh3.googleusercontent.com/-ENB97wwFwVk/VbKUw4SBKZI/AAAAAAAAFX4/4-pv8qfVvSg/s1600/P_20150725_033930.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="http://lh3.googleusercontent.com/-ENB97wwFwVk/VbKUw4SBKZI/AAAAAAAAFX4/4-pv8qfVvSg/s640/P_20150725_033930.jpg"> </a> </div>Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-34942495043619286582015-05-20T07:47:00.000+08:002015-05-20T07:47:02.976+08:00DIY Heated Clothing? <div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Most of the content here consists of self-explanatory
pictures, and hence, less description. <o:p></o:p><span style="font-family: Wingdings;">J</span></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
So, you try to go to somewhere, getting well dressed,
open the front door, and only discovered that it is quite cold outside. Sitting
in your room with a bunch of idling 'treasure', you noticed that few of them
desperately begging to be used. After digging around for a while, you found
these:<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Neglected wires:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/--nYCIysK8iM/VVvFiulM1VI/AAAAAAAAFT4/86ndXCb0FYo/s1600/P_20150509_025111.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/--nYCIysK8iM/VVvFiulM1VI/AAAAAAAAFT4/86ndXCb0FYo/s320/P_20150509_025111.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Discarded Li-ion batteries:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-RG7ZCzov9eA/VVvGAdmt0_I/AAAAAAAAFT4/wcF9L8YkeSI/s1600/P_20150519_225332.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/-RG7ZCzov9eA/VVvGAdmt0_I/AAAAAAAAFT4/wcF9L8YkeSI/s320/P_20150519_225332.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Unwanted papers:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-n8GwrZhDqM4/VVvFibOEBWI/AAAAAAAAFT4/knO1IV29pgA/s1600/P_20150509_025345.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-n8GwrZhDqM4/VVvFibOEBWI/AAAAAAAAFT4/knO1IV29pgA/s320/P_20150509_025345.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Then, you picked the best out of the bunch:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-9GlqI_9IBo4/VVvFjgqjRyI/AAAAAAAAFT4/EVqgdmJ4kh4/s1600/P_20150509_025635.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://3.bp.blogspot.com/-9GlqI_9IBo4/VVvFjgqjRyI/AAAAAAAAFT4/EVqgdmJ4kh4/s320/P_20150509_025635.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Staring at it for some time, thoughts pops up in your
mind and then you do this to your bag:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-OkbUQgIQwZY/VVvFRbPqgEI/AAAAAAAAFT4/RUMAvoO4toM/s1600/P_20150507_154757.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-OkbUQgIQwZY/VVvFRbPqgEI/AAAAAAAAFT4/RUMAvoO4toM/s320/P_20150507_154757.jpg" width="240" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Hook it up to the battery, and now it is a functioning
heated bag, perfect for commuting. :D<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
But, what if you want to use it indoor? Wearing the bag
all the time could be awkward...<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Let's try wrap the wire:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-CLvj3cAjjic/VVvFyuY5UyI/AAAAAAAAFT4/Dv25zN3AUdg/s1600/P_20150509_032407.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://3.bp.blogspot.com/-CLvj3cAjjic/VVvFyuY5UyI/AAAAAAAAFT4/Dv25zN3AUdg/s320/P_20150509_032407.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Making it more rigid:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-R_IbCicODG0/VVvF0P2_YLI/AAAAAAAAFT4/afiGlCh_3fs/s1600/P_20150509_032640.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://3.bp.blogspot.com/-R_IbCicODG0/VVvF0P2_YLI/AAAAAAAAFT4/afiGlCh_3fs/s320/P_20150509_032640.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Looks good, why not make another one?<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Here we go again:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-yhL40eoZJRg/VVvFQPC_pSI/AAAAAAAAFT4/ENQTNdSE1SU/s1600/P_20150507_160407.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://3.bp.blogspot.com/-yhL40eoZJRg/VVvFQPC_pSI/AAAAAAAAFT4/ENQTNdSE1SU/s320/P_20150507_160407.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Steadier frame:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-5Fnumo1zJXk/VVvFQTIeJCI/AAAAAAAAFT4/3XTnQaDE7Nc/s1600/P_20150507_161634.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-5Fnumo1zJXk/VVvFQTIeJCI/AAAAAAAAFT4/3XTnQaDE7Nc/s320/P_20150507_161634.jpg" width="240" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Testing it with 3.7V li-ion battery:<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ods5gn_mdrc/VVvFz9wCShI/AAAAAAAAFT4/ZswwpGUHfew/s1600/P_20150509_033316.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-ods5gn_mdrc/VVvFz9wCShI/AAAAAAAAFT4/ZswwpGUHfew/s320/P_20150509_033316.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
At this stage, it is a heated pad suitable for any
desired clothing, but, today is my laundry day, so no cloth to test. :/ </div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Well, why not a DIY heated feet warmer?<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ePq703Idsjg/VVvF9AggYeI/AAAAAAAAFT4/gEHZTSqHyGw/s1600/P_20150509_144454.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-ePq703Idsjg/VVvF9AggYeI/AAAAAAAAFT4/gEHZTSqHyGw/s320/P_20150509_144454.jpg" width="320" /></a></div>
<div class="MsoNoSpacing">
<o:p><br /></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Conclusion:<o:p></o:p></div>
<div class="MsoNoSpacing">
Since carbon ribbon is expensive, why not use readily available copper wire?</div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
With total of around 8 meters of wire, it draws around 4
amps of current. That translates to roughly 0.1 ohms per meter. The heating
power combined is near 15 watts. For the battery in use, maximum runtime
estimated is to be around 2 hours. Not bad for practically free heater. :D<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Sustainability anyone?</div>
<div class="MsoNoSpacing">
<br /></div>
<br />
<div class="MsoNoSpacing">
I would like to give special thanks to Yifeng Zhang and
Jeneni Kasithasan for all of the material involved here. ;)<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Not forgetting University of Manchester for the spirit of sustainability. :D</div>
Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com09 Wallace Avenue, Manchester, Manchester M14 5HH, UK53.4519927 -2.218396799999936853.3007737 -2.5411202999999367 53.603211699999996 -1.8956732999999368tag:blogger.com,1999:blog-6095764826828192506.post-24514631716031879722014-11-08T17:14:00.000+08:002014-11-08T17:14:23.069+08:00Failed Installing XC8 v1.33 on Windows 8.xI was trying to install <a href="http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/">XC8</a> C compiler from <a href="http://www.microchip.com/">Microchip</a> on my Windows 8.1 machines, and this come out:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-p_rxGtPYqEM/VF3cmDGjBvI/AAAAAAAAEdg/vG984ShEWZQ/s1600/Warning.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-p_rxGtPYqEM/VF3cmDGjBvI/AAAAAAAAEdg/vG984ShEWZQ/s1600/Warning.jpg" height="176" width="400" /></a></div>
<br />
<br />
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> Warning
Problem running post-install step. Installation may not complete correctly
Error running C:\Windows\syswow64\regsvr32 /s "C:\ Program Files (x86)Microchip\xc8\v1.33\bin\MPLABXC8.dll" :
Program ended with an error exit code
</code></pre>
<br />
<br />
After minutes of 'Google-ing', I found this:<br />
<a href="http://blog.microcasts.tv/2013/08/09/xc8-problem-running-post-install-step">http://blog.microcasts.tv/2013/08/09/xc8-problem-running-post-install-step</a><br />
<br />
Tried the suggested solution and sadly, for my case, it didn't work.<br />
<br />
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> regsvr32.exe "C:\Program Files (x86)\Microchip\xc8\v1.33\bin\MPLABXC8.dll"
</code></pre>
<br />
<br />
Getting deeper, I found this:<br />
<a href="http://www.microchip.com/forums/m682716.aspx">http://www.microchip.com/forums/m682716.aspx</a><br />
<br />
At post #12, user "SHidem" pointed out there are missing DLLs in the installer, namely "MSVCP71.DLL" and "MSVCR71.DLL".<br />
<br />
I downloaded and pasted it xc8/bin directory, and now, all works perfectly now.<br />
I've made a mirror link here, just in case the link went offline:<br />
<a href="https://www.dropbox.com/s/g70kq6hj8k85b3x/msvc71.zip?dl=0">https://www.dropbox.com/s/g70kq6hj8k85b3x/msvc71.zip?dl=0</a><br />
<br />
Thank you "SHidem".<br />
<br />
<br />
<br />
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-12235855580011784952014-05-02T20:38:00.001+08:002014-05-02T20:38:06.360+08:00Reviving bricked ICD2 CloneIf you guys been following my twitter post, it is known that my ICD2 ICSP clone was bricked on <a href="https://twitter.com/AfdhalAtiffTan/status/402796974061002752">19th Nov 2013</a>.<br />
<br />
Luckily, I found this site: <a href="http://www.pwm.pe.kr/updsp.html">http://www.pwm.pe.kr/updsp.html</a><br />
<br />
Then I use my new PICKit2 clone (again) to reflash PIC18F4550 firmware.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-9Kesqi1ZiZc/U2OO7LJ12tI/AAAAAAAADDQ/toFnQjJcMlo/s1600/Bmn97MlIcAAIabe.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-9Kesqi1ZiZc/U2OO7LJ12tI/AAAAAAAADDQ/toFnQjJcMlo/s1600/Bmn97MlIcAAIabe.jpg" height="480" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Shown above, PICkit2 reprogramming ICD2. Ironic? </div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-rybmGmuBprY/U2OPjdcOW7I/AAAAAAAADDY/bHmMaB2C7Mw/s1600/IMG-20140502-00944.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-rybmGmuBprY/U2OPjdcOW7I/AAAAAAAADDY/bHmMaB2C7Mw/s1600/IMG-20140502-00944.jpg" height="480" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Connection close-up.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Soldering SMD component is quite challenging, I made the connection using thinnest wire available. </div>
<div class="separator" style="clear: both; text-align: left;">
Now, it is up and running well. :)</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-57900356168727189212014-03-13T02:00:00.002+08:002014-03-15T01:04:41.885+08:00In Real Life: NE555 OutputsI was working on simple flyback driver for my HV DC supply and realized that I need some kind of a MOSFET driver. I used the excellent <a href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010675">TC4429</a> in the past, but the x5 relative cost of it compared to <a href="http://en.wikipedia.org/wiki/555_timer_IC">NE555</a> makes me wonder if the famous chip is reliable enough to do the same task.<br />
<br />
In this post, I test the effect of <b>decoupling cap</b> on supply and control voltage pins, and the effect of <b>tied pin3 and pin7</b>, the <b>phase difference</b> of both output, and the <b>speed</b> of internal comparator and reset pin.<br />
<br />
So, this is my attempt of probing the pin3 output waveform, using 12V SLA and <a href="http://www.rigolna.com/products/digital-oscilloscopes/ds1000e/ds1102e/">DS1102E</a>. :)<br />
<br />
To test the chip, I <a href="http://www.talkingelectronics.com/projects/50%20-%20555%20Circuits/50%20-%20555%20Circuits.html#B">configured</a> it as simple one-stage <a href="http://en.wikipedia.org/wiki/Ring_oscillator">ring oscillator</a>.<br />
<br />
The first test, the supply voltage decoupling capacitor.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-UwAmN_VYV30/UyAGR2W9GxI/AAAAAAAADBA/SDslSH-LwHU/s1600/IMG-20140312-00906.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-UwAmN_VYV30/UyAGR2W9GxI/AAAAAAAADBA/SDslSH-LwHU/s1600/IMG-20140312-00906.jpg" height="300" width="400" /></a></div>
<div style="text-align: center;">
This is the barebone circuit. The simplicity of the circuit proved on breadboard.</div>
<div style="text-align: center;">
<br />
<a name='more'></a><br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ICNcq07NmmU/UyAGA75hDSI/AAAAAAAADBA/IE42qZOpo_c/s1600/NewFile0.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-ICNcq07NmmU/UyAGA75hDSI/AAAAAAAADBA/IE42qZOpo_c/s1600/NewFile0.bmp" height="291" width="400" /></a></div>
<div style="text-align: center;">
This is the pin3 output of the chip, running at ~228kHz, with ~97% duty cycle.</div>
<div style="text-align: center;">
Overshoot is also visible.</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
It is so tempting to add a power supply decoupling capacitor just to see the impact on the output.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-4PyTgNVJYNs/UyAGSfZSJfI/AAAAAAAADBA/oKjIr1wyliI/s1600/IMG-20140312-00907.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-4PyTgNVJYNs/UyAGSfZSJfI/AAAAAAAADBA/oKjIr1wyliI/s1600/IMG-20140312-00907.jpg" height="300" width="400" /></a></div>
<div style="text-align: center;">
100uF cap added to supply pin 1 and 8.</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-tS-tET9U3DE/UyAGA_jlI7I/AAAAAAAADBA/49qAkgSKnIY/s1600/NewFile1.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-tS-tET9U3DE/UyAGA_jlI7I/AAAAAAAADBA/49qAkgSKnIY/s1600/NewFile1.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
Clearly, the overshoot minimized and frequency seems to be raised by ~17kHz, making total of ~246kHz. </div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Let's see it in detail of various cap effect.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-gnCfF2TB2qM/UyAGSMxCanI/AAAAAAAADBA/C5pMxizb0Pg/s1600/IMG-20140312-00908.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-gnCfF2TB2qM/UyAGSMxCanI/AAAAAAAADBA/C5pMxizb0Pg/s1600/IMG-20140312-00908.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The chip with 100nF decoupling cap.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-wlOIcGz7TsQ/UyAGS0_exYI/AAAAAAAADBA/1bgck4Oz29w/s1600/IMG-20140312-00909.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-wlOIcGz7TsQ/UyAGS0_exYI/AAAAAAAADBA/1bgck4Oz29w/s1600/IMG-20140312-00909.jpg" height="300" width="400" /></a></div>
<div style="text-align: center;">
The chip with 180pF decoupling cap.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-0vyk2AqYOM0/UyAGFsPSwHI/AAAAAAAADBA/zdcSqN78Z3U/s1600/NewFile2.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-0vyk2AqYOM0/UyAGFsPSwHI/AAAAAAAADBA/zdcSqN78Z3U/s1600/NewFile2.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
This is the output without any decoupling cap.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-k9jQdgBn4MI/UyAGHTKZeQI/AAAAAAAADBA/giUgeSsFLSY/s1600/NewFile3.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-k9jQdgBn4MI/UyAGHTKZeQI/AAAAAAAADBA/giUgeSsFLSY/s1600/NewFile3.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
The output with 100uF cap.</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
The addition of the cap shown to be beneficial to the output performance. Especially both rise and fall time, which had improvement of 14nS and 3nS respectively.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-WJad8JN-FQs/UyAGH3ojYrI/AAAAAAAADBA/6BPWuhZWFg8/s1600/NewFile4.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-WJad8JN-FQs/UyAGH3ojYrI/AAAAAAAADBA/6BPWuhZWFg8/s1600/NewFile4.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
The output with 180pF. It overshoots even higher than before, maybe caused by the cap resonating with supply leads.</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YGpBgeB7hM8/UyAGJKqPPZI/AAAAAAAADBA/8NhNoHNkFb0/s1600/NewFile5.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-YGpBgeB7hM8/UyAGJKqPPZI/AAAAAAAADBA/8NhNoHNkFb0/s1600/NewFile5.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
The output with 100nF decoupling cap. This one is captured at the wrong moment. The curve super imposed on each other. In reality, it is close to 100uF output. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-pVn13l2W9T0/UyAGIbX1TlI/AAAAAAAADBA/0EDpKTRWqrE/s1600/NewFile6.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-pVn13l2W9T0/UyAGIbX1TlI/AAAAAAAADBA/0EDpKTRWqrE/s1600/NewFile6.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
The output with 100nF and 100uF combined. Better performance than separated ones, gain of 2nS and 1nS for rise and fall time. This is the fastest transition that I can get: 25nS of rise and 19nS of fall.</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
<b><i>So, the decoupling capacitor conclusion:</i></b></div>
<div style="text-align: left;">
<b><i>-Will aid output transition by 'stiffening' supplied power source.</i></b></div>
<div style="text-align: left;">
<b><i>-Smaller cap will worsen overshoot.</i></b></div>
<div style="text-align: left;">
<b><i>-Due to intrinsic <a href="http://en.wikipedia.org/wiki/Equivalent_series_resistance">ESR</a>, ideal cap would be the combination of both electrolytic and ceramic cap, e.g. in this case, 100uF and 100nF. (But I bet 1uF and 100nF do work too.)</i></b></div>
<div style="text-align: left;">
<b><i><br /></i></b></div>
<div style="text-align: left;">
<b><i>--------------------------------------------------------------------------------------------------------------------------</i></b></div>
<div style="text-align: left;">
<b><i><br /></i></b></div>
<div style="text-align: left;">
Next, let's test the effect of decoupling cap on control-voltage 5th-pin of the chip.</div>
<div style="text-align: left;">
I've seen a lot circuit online that ignore this pin and act like it does not exist. This is a bad practice of course because it effects both <a href="http://en.wikipedia.org/wiki/Comparator">comparators</a>' reference voltage in the <a href="http://en.wikipedia.org/wiki/File:NE555_Bloc_Diagram.svg">chip</a>.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
In my test, the only parameter that is changed is only output frequency. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Only three variation made, the cap on ground, on Vcc, and on both Gnd and Vcc.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Fd1nkT9B_v8/UyAGTLt5uvI/AAAAAAAADBA/PMuujIcICoY/s1600/IMG-20140312-00910.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Fd1nkT9B_v8/UyAGTLt5uvI/AAAAAAAADBA/PMuujIcICoY/s1600/IMG-20140312-00910.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The cap with ground referenced.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-RZ2hi6q7UEs/UyAGTk3UY5I/AAAAAAAADBA/sBNqgEVwAss/s1600/IMG-20140312-00911.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-RZ2hi6q7UEs/UyAGTk3UY5I/AAAAAAAADBA/sBNqgEVwAss/s1600/IMG-20140312-00911.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The cap with Vcc referenced.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-DRJ3SW75Uss/UyAGUjeS6qI/AAAAAAAADBA/9GjhTNkbZV4/s1600/IMG-20140312-00912.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-DRJ3SW75Uss/UyAGUjeS6qI/AAAAAAAADBA/9GjhTNkbZV4/s1600/IMG-20140312-00912.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The cap with both Vcc and ground referenced. Both caps are 100nF.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
These are the resulting waveform.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-VXZsvl5PzpA/UyAGKMkTCZI/AAAAAAAADBA/6v45mmONM1Q/s1600/NewFile7.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-VXZsvl5PzpA/UyAGKMkTCZI/AAAAAAAADBA/6v45mmONM1Q/s1600/NewFile7.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is for Vcc referenced cap. Positive and Negative width of 3.880uS and 110.0nS.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Tii50AcxF5E/UyAGJIQi5cI/AAAAAAAADBA/SJ4JxNsH3cE/s1600/NewFile8.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Tii50AcxF5E/UyAGJIQi5cI/AAAAAAAADBA/SJ4JxNsH3cE/s1600/NewFile8.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is for Gnd referenced cap. Positive and Negative width of 3.860uS and 120.0nS.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-8cR1IPIxu5E/UyAGKPoE_7I/AAAAAAAADBA/1lCCgjEkaeg/s1600/NewFile9.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-8cR1IPIxu5E/UyAGKPoE_7I/AAAAAAAADBA/1lCCgjEkaeg/s1600/NewFile9.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This one is for no cap. Positive and Negative width of 3.930uS and 120.0nS.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The frequency increased when decoupling cap is used. In my test, gain of -Wid 10nS and +Wid 70nS achieved. </div>
<div class="separator" style="clear: both; text-align: left;">
Using both sides for the cap seems to yield no difference to the ground referenced ones.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<i><b>Conclusion for control-voltage pin capacitor:</b></i></div>
<div class="separator" style="clear: both; text-align: left;">
<i><b>-Frequency increased might translates to the dampened effect of <a href="http://en.wikipedia.org/wiki/Hysteresis">hysteresis</a> of the internal comparator. </b></i></div>
<div class="separator" style="clear: both; text-align: left;">
<i><b>-Ground referenced capacitor seems to behave better than the Vcc referenced ones.</b></i></div>
<div class="separator" style="clear: both; text-align: left;">
<i><b>-For MOSFET driving purposes, this means faster signal propagation delay with minimized phase shift. </b></i></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b><i>--------------------------------------------------------------------------------------------------------------------------</i></b></div>
<div style="text-align: left;">
<b><i><br /></i></b></div>
<div style="text-align: left;">
Next test is, the effect if tied pin3 and pin7 of the chip.</div>
<div style="text-align: left;">
The 3rd pin is the dedicated 'output' for the chip, it has a <a href="http://en.wikipedia.org/wiki/Push%E2%80%93pull_output">push-pull output</a>, while the 7th pin is a 'discharge' pin, which has only an <a href="http://en.wikipedia.org/wiki/Open_collector">open-collector output</a>. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
These two pins have the same output phase, so, combining them supposed not to cause any problem, right?</div>
<div style="text-align: left;">
Let's find out. :)</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-R8WFkfFyAto/UyAGBloC1NI/AAAAAAAADBA/sSjtG69fsqg/s1600/NewFile11.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-R8WFkfFyAto/UyAGBloC1NI/AAAAAAAADBA/sSjtG69fsqg/s1600/NewFile11.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is the overview of tied output.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-gnvv6Ndk6Pk/UyAGB9aFD0I/AAAAAAAADBA/TeLDXGPppX8/s1600/NewFile12.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-gnvv6Ndk6Pk/UyAGB9aFD0I/AAAAAAAADBA/TeLDXGPppX8/s1600/NewFile12.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is the overview of untied output.</div>
<div style="text-align: left;">
Notice that the tied output have a bit of 'bulge' to it; having a prolonged overshoot.</div>
<div style="text-align: left;">
I zoomed in for better detail.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-kJrgbbJyRnI/UyAGCV5SX0I/AAAAAAAADBA/ytH7Gkubc5o/s1600/NewFile13.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-kJrgbbJyRnI/UyAGCV5SX0I/AAAAAAAADBA/ytH7Gkubc5o/s1600/NewFile13.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is pin3 and pin7 tied together.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-PGt0Y0jKMVc/UyAGCnGdcFI/AAAAAAAADBA/-vB0938ZdEc/s1600/NewFile14.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-PGt0Y0jKMVc/UyAGCnGdcFI/AAAAAAAADBA/-vB0938ZdEc/s1600/NewFile14.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
This is solely pin3 output.</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
So, it is clear that the pin7 really does 'fighting' with pin3. Pin7 transistor seems to switch off a bit slow, causing the rise time suffers. The fall time doesn't affected, it stays at 23nS, but the rise time, from 29nS to 108nS, is a significant change. But bear in mind, this is unloaded output.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Now, I add a capacitive load of 2nF to the output.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ZvbJC-Yhpis/UyAGUsGriAI/AAAAAAAADBA/23cCRqBdB-g/s1600/IMG-20140312-00913.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-ZvbJC-Yhpis/UyAGUsGriAI/AAAAAAAADBA/23cCRqBdB-g/s1600/IMG-20140312-00913.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The capacitive load is in orange. :) </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-wNB2KaumU5o/UyAGEg2BLnI/AAAAAAAADBA/-hYdmCIF9GA/s1600/NewFile16.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-wNB2KaumU5o/UyAGEg2BLnI/AAAAAAAADBA/-hYdmCIF9GA/s1600/NewFile16.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Overview of untied output with capacitive loading.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-pVdSCpLakSk/UyAGE6VfNYI/AAAAAAAADBA/RQqfHyPUMqQ/s1600/NewFile17.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-pVdSCpLakSk/UyAGE6VfNYI/AAAAAAAADBA/RQqfHyPUMqQ/s1600/NewFile17.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Overview of tied output with capacitive loading.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-28Uwc5aLZm8/UyAGE2A4DkI/AAAAAAAADBA/nYHiIeW4Kl8/s1600/NewFile18.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-28Uwc5aLZm8/UyAGE2A4DkI/AAAAAAAADBA/nYHiIeW4Kl8/s1600/NewFile18.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Close-up of untied output with capacitive loading.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-p8kF9loAQu4/UyAGFfOwwcI/AAAAAAAADBA/Gjb1vXTgFRE/s1600/NewFile19.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-p8kF9loAQu4/UyAGFfOwwcI/AAAAAAAADBA/Gjb1vXTgFRE/s1600/NewFile19.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Close-up of tied output with capacitive loading.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
It is shown that even with detrimentally slowed rise time, it has improved the fall time of from 60ns to 45ns.</div>
<div class="separator" style="clear: both; text-align: left;">
Also visible, the falling curve is much sharper and more close towards the ground.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
So, I thought, if the discharge-pin really does improve the falling-edge, why not just put a diode to isolated it from damaging the rising-edge?</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-pf66jvtR9Nc/UyAGUlQq50I/AAAAAAAADBA/3Wa62KeLDG4/s1600/IMG-20140312-00914.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-pf66jvtR9Nc/UyAGUlQq50I/AAAAAAAADBA/3Wa62KeLDG4/s1600/IMG-20140312-00914.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://en.wikipedia.org/wiki/1N4148">1N4148</a> on pin3 and pin7.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Turns out, it failed. :( </div>
<div class="separator" style="clear: both; text-align: left;">
Adding a diode, with the cathode facing 3rd pin, nothing change. It behave like untied output.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b><i>Conclusion on tied output:</i></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><i>-It improves falling edge at the expense of damaging rising-edge.</i></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><i>-But, it also make the chip more capable of sinking current which means, output is much closer to ground.</i></b></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b><i>--------------------------------------------------------------------------------------------------------------------------</i></b></div>
<div style="text-align: left;">
Another test, the non-inverting version of the circuit. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
I saw <a href="http://www.talkingelectronics.com/projects/50%20-%20555%20Circuits/50%20-%20555%20Circuits.html#HH">this</a> back in old days and thought, that is a creative use of the reset pin.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
What I've done here is just use a generic NPN transistor to invert the output of the chip, then, just feed it directly to the <a href="http://en.wikipedia.org/wiki/Pull-up_resistor">pulled-up</a> 4th 'reset' pin. The 2nd and 6th pin is grounded of course.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-DuRSCDK21Zc/UyAGVeEVuqI/AAAAAAAADBA/_s4KkwEVWHY/s1600/IMG-20140312-00915.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-DuRSCDK21Zc/UyAGVeEVuqI/AAAAAAAADBA/_s4KkwEVWHY/s1600/IMG-20140312-00915.jpg" height="300" width="400" /></a></div>
<div style="text-align: center;">
The reset-pin oscillator circuit, with capacitive loading.</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-zP5UEWlzFWY/UyAGF6hGKtI/AAAAAAAADBA/x_c4LwmBm-o/s1600/NewFile20.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-zP5UEWlzFWY/UyAGF6hGKtI/AAAAAAAADBA/x_c4LwmBm-o/s1600/NewFile20.bmp" height="291" width="400" /></a></div>
<div style="text-align: center;">
Overview of the oscillator output.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-C2EexbSz_YE/UyAGGcdFLcI/AAAAAAAADBA/v-sWsbWQ0eI/s1600/NewFile21.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-C2EexbSz_YE/UyAGGcdFLcI/AAAAAAAADBA/v-sWsbWQ0eI/s1600/NewFile21.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
Close-up of 3rd-pin output. </div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-N1yi2yA4KKs/UyAGGiYzm_I/AAAAAAAADBA/FqggxBbNrsU/s1600/NewFile22.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-N1yi2yA4KKs/UyAGGiYzm_I/AAAAAAAADBA/FqggxBbNrsU/s1600/NewFile22.bmp" height="292" width="400" /></a></div>
<div style="text-align: center;">
Close up of tied 3rd and 7th pin output.</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Although it's working at higher speed of ~334kHz, the output suffers by slower <a href="http://en.wikipedia.org/wiki/Slew_rate">slew rate</a> for both <a href="http://en.wikipedia.org/wiki/Signal_edge">edges</a>.</div>
<div style="text-align: left;">
It's worsen with tied output, albeit the +Width is much shorter. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b><i>Conclusion for 'reset' pin oscillator:</i></b></div>
<div style="text-align: left;">
<b><i>-It does oscillate faster than previous circuit.</i></b></div>
<div style="text-align: left;">
<b><i>-But, it has the worse signal <a href="http://en.wikipedia.org/wiki/Step_response">step-response</a> in my test.</i></b></div>
<div style="text-align: left;">
<b><i>-Still usable at slow frequency.</i></b></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b><i>--------------------------------------------------------------------------------------------------------------------------</i></b></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Final test, the phase difference of both 3rd 'output' pin and 7th 'discharge' pin.</div>
<div style="text-align: left;">
This is just for fun, comparing the time delay of the 'discharge' pin to turn off.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-h3avxqNoXqw/UyAGG1Fg5TI/AAAAAAAADBA/xvis9lPJgdg/s1600/NewFile23.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-h3avxqNoXqw/UyAGG1Fg5TI/AAAAAAAADBA/xvis9lPJgdg/s1600/NewFile23.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Output of the 3rd pin.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-EdCu726icAs/UyAGHRHjzBI/AAAAAAAADBA/B1U-Rx_4ZgI/s1600/NewFile24.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-EdCu726icAs/UyAGHRHjzBI/AAAAAAAADBA/B1U-Rx_4ZgI/s1600/NewFile24.bmp" height="292" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Output of the 7th pin, with 10kR pull-up resistor. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
The 7th pin output is much smoother when rising, with no visible overshoot.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b><i>Conclusion for output phase difference:</i></b></div>
<div style="text-align: left;">
<b><i>-The 7th pin slow to turn off by 400ns.</i></b></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b><i>--------------------------------------------------------------------------------------------------------------------------</i></b><br />
<b><i><br /></i></b>
<b><i>Post summary:</i></b><br />
<b><i>NE555 could be deployed as MOSFET driver for anything below ~50kHz (arbitrarily chosen).</i></b><br />
<b><i>It is recommended to:</i></b><br />
<b><i>-Use decoupling cap for both power supply and control voltage pins.</i></b><br />
<b><i>-Tied 3rd and 7th pin is optional, but it will promotes better turn-off performance.</i></b><br />
<b><i>-It could be use as both inverting and non-inverting driver, albeit performing better for the latter. </i></b></div>
<div style="text-align: left;">
<b><i><br /></i></b></div>
<div style="text-align: left;">
It is amazing how this popular chip can teach me a lot in electronics signal integrity, which includes the importance of decoupling cap, signal transition and propagation time delay, current sourcing and sinking, phase difference, voltage overshoot, hysteresis, push-pull vs. open-collector output, and many more. :)</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com2tag:blogger.com,1999:blog-6095764826828192506.post-73437552338442099012014-01-03T14:52:00.000+08:002014-01-03T14:52:05.965+08:00WTF Engine?<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/uyE0LWARyOs?feature=player_embedded' frameborder='0'></iframe></div>
<br />
After some long hours tinkering with our project, we lose our logic... :) lolAfdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com1tag:blogger.com,1999:blog-6095764826828192506.post-23548267457184008112013-10-01T02:13:00.000+08:002013-10-01T02:13:01.099+08:00New Domain Name :)The <a href="http://high-current.blogspot.com/">http://high-current.blogspot.com/</a> now will be redirected to <a href="http://www.afdhalatifftan.com/">http://www.afdhalatifftan.com/</a>. :)<br />
<br />
Hosted by <a href="http://www.namecheap.com/?aff=56614">http://www.namecheap.com/?aff=56614</a><br />
<br />
<br />
<!--BEGIN LINK --><a href="Http://www.namecheap.com?aff=56614"><img src="http://files.namecheap.com/graphics/linkus/468x60-8.jpg" height="60" width="468" border="0" alt="Namecheap.com - Web hosting starting from only $3.45/mo"></a><!--END LINK -->Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-15472528085229729382013-05-05T00:07:00.001+08:002014-03-15T01:06:53.259+08:00Final Touch-UpOn 22nd April 2013, Sudirman do some final touch-up on the bike, getting ready for presentation...<br />
The picture will speaks for itself...<br />
<br />
This is him, working on wiring placement.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-M2xns5EiaZk/UYUu2n6nfgI/AAAAAAAACrU/nW58r_fzPTI/s1600/IMG-20130422-00550.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-M2xns5EiaZk/UYUu2n6nfgI/AAAAAAAACrU/nW58r_fzPTI/s400/IMG-20130422-00550.jpg" height="300" width="400" /></a></div>
<a name='more'></a><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/--mRtOooPSA0/UYUu2IcKAlI/AAAAAAAACrE/uNCFKYIYIis/s1600/IMG-20130422-00551.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/--mRtOooPSA0/UYUu2IcKAlI/AAAAAAAACrE/uNCFKYIYIis/s400/IMG-20130422-00551.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ToaPJowEoXk/UYUu2p8ygtI/AAAAAAAACrM/IHimoTCOz58/s1600/IMG-20130422-00552.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-ToaPJowEoXk/UYUu2p8ygtI/AAAAAAAACrM/IHimoTCOz58/s400/IMG-20130422-00552.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vcjQnD3GXZU/UYUu51fYSmI/AAAAAAAACrY/XoVJAOcBkTY/s1600/IMG-20130422-00553.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-vcjQnD3GXZU/UYUu51fYSmI/AAAAAAAACrY/XoVJAOcBkTY/s400/IMG-20130422-00553.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-V-1-U0MCV0c/UYUu6iWFrXI/AAAAAAAACrc/U5L5e0TLMLs/s1600/IMG-20130422-00554.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-V-1-U0MCV0c/UYUu6iWFrXI/AAAAAAAACrc/U5L5e0TLMLs/s400/IMG-20130422-00554.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-DLXve5R5LME/UYUu-qofSqI/AAAAAAAACro/bGLsbe-BbBU/s1600/IMG-20130422-00555.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-DLXve5R5LME/UYUu-qofSqI/AAAAAAAACro/bGLsbe-BbBU/s400/IMG-20130422-00555.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-1W4wcKe26a0/UYUvA75Ay2I/AAAAAAAACrw/rXlL2peGPbI/s1600/IMG-20130422-00557.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-1W4wcKe26a0/UYUvA75Ay2I/AAAAAAAACrw/rXlL2peGPbI/s400/IMG-20130422-00557.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-BN9v4vG-VdA/UYUvCPxZJ8I/AAAAAAAACr8/QxMbPGvtLJQ/s1600/IMG-20130422-00559.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-BN9v4vG-VdA/UYUvCPxZJ8I/AAAAAAAACr8/QxMbPGvtLJQ/s400/IMG-20130422-00559.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-3PU0Ii-tUkw/UYUvGQK-2AI/AAAAAAAACsI/NorEnjyEJe4/s1600/IMG-20130422-00560.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-3PU0Ii-tUkw/UYUvGQK-2AI/AAAAAAAACsI/NorEnjyEJe4/s400/IMG-20130422-00560.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-JhcEhSSkr6M/UYUvHveDZKI/AAAAAAAACsQ/U9J9xpnys3o/s1600/IMG-20130422-00561.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-JhcEhSSkr6M/UYUvHveDZKI/AAAAAAAACsQ/U9J9xpnys3o/s400/IMG-20130422-00561.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-1SxGJZuxkGc/UYUvIgrSMwI/AAAAAAAACsY/KgPysF8gy9Q/s1600/IMG-20130422-00562.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-1SxGJZuxkGc/UYUvIgrSMwI/AAAAAAAACsY/KgPysF8gy9Q/s400/IMG-20130422-00562.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-K32sePtVIUc/UYUvMYmU15I/AAAAAAAACsw/ohfgaohqTW8/s1600/IMG-20130423-00565.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-K32sePtVIUc/UYUvMYmU15I/AAAAAAAACsw/ohfgaohqTW8/s400/IMG-20130423-00565.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
This is him, working on exhaust gas temperature sensor.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-QTZlaRFkOvI/UYUvYpcgQeI/AAAAAAAACtg/uQzj8CWD7Q4/s1600/IMG-20130423-00570.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-QTZlaRFkOvI/UYUvYpcgQeI/AAAAAAAACtg/uQzj8CWD7Q4/s400/IMG-20130423-00570.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-SprgLayWPUo/UYUvZvQQImI/AAAAAAAACts/h3TEXO3IW5o/s1600/IMG-20130423-00571.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-SprgLayWPUo/UYUvZvQQImI/AAAAAAAACts/h3TEXO3IW5o/s400/IMG-20130423-00571.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Scm8MzpueJ4/UYUvZjhS9WI/AAAAAAAACtw/9YtXycuvXto/s1600/IMG-20130423-00572.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Scm8MzpueJ4/UYUvZjhS9WI/AAAAAAAACtw/9YtXycuvXto/s400/IMG-20130423-00572.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-HeqiI5KV3BM/UYUvcOpanMI/AAAAAAAACt4/l3wBNRb9OOc/s1600/IMG-20130423-00573.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-HeqiI5KV3BM/UYUvcOpanMI/AAAAAAAACt4/l3wBNRb9OOc/s400/IMG-20130423-00573.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-DYVT-w9jCuI/UYUvSA-dQ0I/AAAAAAAACtU/HnOuz3ay6GY/s1600/IMG-20130423-00569.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-DYVT-w9jCuI/UYUvSA-dQ0I/AAAAAAAACtU/HnOuz3ay6GY/s400/IMG-20130423-00569.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-eNu4xYARmcs/UYUvQ9Hzm0I/AAAAAAAACtM/63f3ubN7oVE/s1600/IMG-20130423-00568.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-eNu4xYARmcs/UYUvQ9Hzm0I/AAAAAAAACtM/63f3ubN7oVE/s400/IMG-20130423-00568.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-K7nJ4LGFKEc/UYUvPfnkiRI/AAAAAAAACtE/4IAaxiHeZLk/s1600/IMG-20130423-00567.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-K7nJ4LGFKEc/UYUvPfnkiRI/AAAAAAAACtE/4IAaxiHeZLk/s400/IMG-20130423-00567.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-vWpTCUI2CCQ/UYUvNr_U1YI/AAAAAAAACs8/a11ms7m98co/s1600/IMG-20130423-00566.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-vWpTCUI2CCQ/UYUvNr_U1YI/AAAAAAAACs8/a11ms7m98co/s400/IMG-20130423-00566.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YCkDtr892Es/UYUvLjJ_3nI/AAAAAAAACss/8tNhwa64n-s/s1600/IMG-20130423-00564.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-YCkDtr892Es/UYUvLjJ_3nI/AAAAAAAACss/8tNhwa64n-s/s400/IMG-20130423-00564.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-5gr7j-YFQvw/UYUvKvf_ZeI/AAAAAAAACsk/P_aq4ZGXvSQ/s1600/IMG-20130423-00563.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-5gr7j-YFQvw/UYUvKvf_ZeI/AAAAAAAACsk/P_aq4ZGXvSQ/s400/IMG-20130423-00563.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Continued to next day, this is him working on display-panel electronics.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-DraCzZm4sBY/UYUvea1Zr7I/AAAAAAAACuI/bNC6f8dktXE/s1600/IMG-20130425-00588.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-DraCzZm4sBY/UYUvea1Zr7I/AAAAAAAACuI/bNC6f8dktXE/s400/IMG-20130425-00588.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-rgMTcK764zo/UYUvdMrYauI/AAAAAAAACuA/OXSTMKsamjQ/s1600/IMG-20130425-00587.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-rgMTcK764zo/UYUvdMrYauI/AAAAAAAACuA/OXSTMKsamjQ/s400/IMG-20130425-00587.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Another day, this is him, painting the display panel.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-9O-NsfcFxKA/UYUvga0Tt_I/AAAAAAAACuQ/SPhV8BFeCEY/s1600/IMG-20130429-00599.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-9O-NsfcFxKA/UYUvga0Tt_I/AAAAAAAACuQ/SPhV8BFeCEY/s400/IMG-20130429-00599.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-siFSSuzlF7A/UYUvh43tiXI/AAAAAAAACuY/IDfC-9uivZU/s1600/IMG-20130429-00600.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-siFSSuzlF7A/UYUvh43tiXI/AAAAAAAACuY/IDfC-9uivZU/s400/IMG-20130429-00600.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-85235393761101796722013-05-04T23:50:00.000+08:002014-03-15T01:07:08.117+08:00Facing with EMI/RFI ProblemsExactly on 25th April 2013 morning, I just noticed that the PIC MCU keeps restarting, each time the engine is running.<br />
<div>
<br /></div>
<div>
Being tinkering with it for hours, I tried various attempt, I tried multiple power supply filters to decouple any possible noise from alternator, didn't work, I tried to bypass the MCLR-pin, put it to high without pullup resistor, still failed, I tried separating voltage source, still happening.</div>
<div>
<br /></div>
<div>
Almost brought me to frustration, I tried to shorts out the output from ignition coil, and the restarting problem disappears!</div>
<div>
<br /></div>
<div>
Here's the oscilloscope shots:</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-TGS0NnlPPCg/UYUgBAkw9_I/AAAAAAAACqU/BvV9lN05EC8/s1600/IMG-20130426-00592.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-TGS0NnlPPCg/UYUgBAkw9_I/AAAAAAAACqU/BvV9lN05EC8/s400/IMG-20130426-00592.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is the digital data before the engine running.</div>
<a name='more'></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-87mItZUstu8/UYUgB1733KI/AAAAAAAACqc/FAZm9EN6wfU/s1600/IMG-20130426-00593.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-87mItZUstu8/UYUgB1733KI/AAAAAAAACqc/FAZm9EN6wfU/s400/IMG-20130426-00593.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Now, the data is contaminated with noises from the engine when running.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YLu7tWBg2co/UYUgC_Pp8nI/AAAAAAAACqk/Yb90Bensqjo/s1600/IMG-20130427-00594.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-YLu7tWBg2co/UYUgC_Pp8nI/AAAAAAAACqk/Yb90Bensqjo/s400/IMG-20130427-00594.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Closer look at the noise. (2V/div).</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-_eNaBaEImw0/UYUgF4A8bTI/AAAAAAAACqs/YI4VWEY8VaM/s1600/IMG-20130427-00595.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-_eNaBaEImw0/UYUgF4A8bTI/AAAAAAAACqs/YI4VWEY8VaM/s400/IMG-20130427-00595.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The noise now attenuated with aluminum foil coated cables, to form a <a href="http://en.wikipedia.org/wiki/Faraday_cage">Faraday Cage</a>. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-AVbv-P0jAbw/UYUgMIRt4RI/AAAAAAAACq0/u9a2x72FiJk/s1600/IMG-20130427-00597.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-AVbv-P0jAbw/UYUgMIRt4RI/AAAAAAAACq0/u9a2x72FiJk/s400/IMG-20130427-00597.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
At 200mV/div, the noise is further attenuated with an extra resistor in series at the HV output.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
So far, that seems to work well, but the problem is still there when the engine is revved over 3000RPM. Final resolution might be to isolate the whole circuit by embedding it inside a fully metal case. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I also learned the hard way, why there's a resistor embedded inside certain spark plugs and <a href="http://www.ngksparkplugs.com/products/performance/resistor_covers.asp?mode=nml">spark plug boots</a>. </div>
<div>
<br /></div>
<div>
</div>
Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-29388074893044618322013-05-04T22:39:00.001+08:002014-03-15T01:07:24.728+08:00Mounting LCDs on stock Display Panel23rd Feb 2013, Sudirman helped me to mount LCDs...<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-VNamUCpDe9o/UYUa0iY95OI/AAAAAAAACp8/LKSQOAPcuO8/s1600/IMG00148-20130223-1738.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-VNamUCpDe9o/UYUa0iY95OI/AAAAAAAACp8/LKSQOAPcuO8/s400/IMG00148-20130223-1738.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Planned position.</div>
<a name='more'></a><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-zMTU07kaFGU/UYUast1unDI/AAAAAAAACo8/gTrvlBMX958/s1600/IMG00139-20130223-1627.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-zMTU07kaFGU/UYUast1unDI/AAAAAAAACo8/gTrvlBMX958/s400/IMG00139-20130223-1627.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Test fit.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-QczcbmfdrhY/UYUasvRG5mI/AAAAAAAACpA/M6PrRtTj1ow/s1600/IMG00143-20130223-1727.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-QczcbmfdrhY/UYUasvRG5mI/AAAAAAAACpA/M6PrRtTj1ow/s400/IMG00143-20130223-1727.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Taking a break.. :)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-7mtSSdAQ_ec/UYUavcNpp2I/AAAAAAAACpc/XMERoMTEQD0/s1600/IMG00144-20130223-1737.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-7mtSSdAQ_ec/UYUavcNpp2I/AAAAAAAACpc/XMERoMTEQD0/s400/IMG00144-20130223-1737.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Getting closer.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-9x36_5jKfdA/UYUauUquBeI/AAAAAAAACpU/n6jr7jH99bw/s1600/IMG00145-20130223-1737.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-9x36_5jKfdA/UYUauUquBeI/AAAAAAAACpU/n6jr7jH99bw/s400/IMG00145-20130223-1737.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Almost there.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Bbq7eCGrcj0/UYUay08rrkI/AAAAAAAACps/ctGc4rU6Pd8/s1600/IMG00147-20130223-1738.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Bbq7eCGrcj0/UYUay08rrkI/AAAAAAAACps/ctGc4rU6Pd8/s400/IMG00147-20130223-1738.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Finally done.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-GfpEmBOARP4/UYUavtMfuII/AAAAAAAACpg/ctCZrEi6NyQ/s1600/IMG00146-20130223-1737.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-GfpEmBOARP4/UYUavtMfuII/AAAAAAAACpg/ctCZrEi6NyQ/s400/IMG00146-20130223-1737.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Side view.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-dDlkVfUKJS0/UYUaz4b-LMI/AAAAAAAACp0/XmGZdY9UxMU/s1600/IMG00149-20130223-1739.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-dDlkVfUKJS0/UYUaz4b-LMI/AAAAAAAACp0/XmGZdY9UxMU/s400/IMG00149-20130223-1739.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Satisfied... :)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-2a816Rwbp_M/UYUa1TMOOvI/AAAAAAAACqE/jqFnLiO5874/s1600/IMG00153-20130223-1837.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-2a816Rwbp_M/UYUa1TMOOvI/AAAAAAAACqE/jqFnLiO5874/s400/IMG00153-20130223-1837.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Test fit again.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
But, since we want to display too much information on the screen, one display is not enough, so, two-LCDs is required...</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-2epeDY8uGO0/UYUat05VkEI/AAAAAAAACpM/nka376lEJw0/s1600/IMG-20130423-00574.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-2epeDY8uGO0/UYUat05VkEI/AAAAAAAACpM/nka376lEJw0/s400/IMG-20130423-00574.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The data-bus is shared, this is achievable because of the LCDs are time-multiplexed via the ENABLE-line...</div>
Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0tag:blogger.com,1999:blog-6095764826828192506.post-70435831327716712392013-05-04T22:20:00.001+08:002013-05-04T22:20:44.218+08:00Damaged Fuel Level FloatOn 27th March, Sudirman helped me to takeout the moped fuel level float for me to tinker with...<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-v2Gd-duycdc/UYUVfyfHVII/AAAAAAAACos/4foa06PGUeE/s1600/IMG-20130327-00517.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-v2Gd-duycdc/UYUVfyfHVII/AAAAAAAACos/4foa06PGUeE/s400/IMG-20130327-00517.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The fuel level float internal resistors.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
On the next day, somehow, for some unexpected reason, due to severely crowded room, someone accidently damaged the float... :(<br />
<br />
So, immediate fuel level can't be known, unless if manually peek at the fuel tank.Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com1tag:blogger.com,1999:blog-6095764826828192506.post-87526619013268066922013-05-04T22:02:00.001+08:002014-03-15T01:07:43.903+08:00Finalizing the Control UnitOn 22nd April 2013, we rushed a bit to get our project done. In this particular post, it is the control unit. It control the system, by pressing the <a href="http://high-current.blogspot.com/2013/03/mounting-kill-switch.html">kill-switch</a>, it can toggle the system between on or off, and it could put the engine into halt when pressed hold for more than 500ms.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-6bFzt_XkfuE/UYUQvuvDi8I/AAAAAAAACnc/Jp5aONtouNU/s1600/IMG-20130314-00489.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-6bFzt_XkfuE/UYUQvuvDi8I/AAAAAAAACnc/Jp5aONtouNU/s400/IMG-20130314-00489.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Me, cutting <a href="http://en.wikipedia.org/wiki/Perfboard">perfboard</a>, using dremel tool that Halim, my friend, gave to me... :)</div>
<a name='more'></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-wuWaDMmfVos/UYUQyYn0OHI/AAAAAAAACn4/1UnUvK3tecg/s1600/IMG-20130422-00548.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-wuWaDMmfVos/UYUQyYn0OHI/AAAAAAAACn4/1UnUvK3tecg/s400/IMG-20130422-00548.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
General-Purpose PIC board built, with programming header. Crystal oscillator embedded inside to save space.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-zYU4uF92J0o/UYUQv4A5dVI/AAAAAAAACng/QAhHeZZ9tT4/s1600/IMG-20130422-00545.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-zYU4uF92J0o/UYUQv4A5dVI/AAAAAAAACng/QAhHeZZ9tT4/s400/IMG-20130422-00545.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
With the PIC installed, looks clean...</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-AoczmCboDsE/UYUQwtSKnBI/AAAAAAAACns/9rtVSKjJtTU/s1600/IMG-20130422-00547.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-AoczmCboDsE/UYUQwtSKnBI/AAAAAAAACns/9rtVSKjJtTU/s400/IMG-20130422-00547.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
Soldering 'expansion board'...</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-9NSXY9a1CH0/UYUQyJVwtaI/AAAAAAAACn0/6oV89tb2Ykc/s1600/IMG-20130422-00549.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-9NSXY9a1CH0/UYUQyJVwtaI/AAAAAAAACn0/6oV89tb2Ykc/s400/IMG-20130422-00549.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Both of the boards coupled together via pin header, just like a <a href="http://arduino.cc/">Arduino</a> with shield installed. :) </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
---</div>
The project postpone to the following day...<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-IivsvD5bpOU/UYUQy4OCfdI/AAAAAAAACoE/WtP7EEJL50U/s1600/IMG-20130424-00582.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-IivsvD5bpOU/UYUQy4OCfdI/AAAAAAAACoE/WtP7EEJL50U/s400/IMG-20130424-00582.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Me, still working the the board...</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Za6kwC95t6s/UYUQ08VKAmI/AAAAAAAACoY/TuS283D5jxw/s1600/IMG-20130425-00585.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Za6kwC95t6s/UYUQ08VKAmI/AAAAAAAACoY/TuS283D5jxw/s400/IMG-20130425-00585.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Making some addition to the expansion board.</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-lraI7ayO0Fo/UYUQ0JG-z-I/AAAAAAAACoM/4GhVjOBRZlE/s1600/IMG-20130425-00584.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-lraI7ayO0Fo/UYUQ0JG-z-I/AAAAAAAACoM/4GhVjOBRZlE/s400/IMG-20130425-00584.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Finished board.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-kgTgH2kpfvo/UYUQ1B44uOI/AAAAAAAACoU/h9m4IIfI7UA/s1600/IMG-20130425-00586.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-kgTgH2kpfvo/UYUQ1B44uOI/AAAAAAAACoU/h9m4IIfI7UA/s400/IMG-20130425-00586.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Installed inside the moped's upper-left side of the leg-guard. </div>
Afdhal Atiff Tanhttp://www.blogger.com/profile/18048104720991410262noreply@blogger.com0