tag:blogger.com,1999:blog-46768833996435903312024-03-13T19:16:42.615+00:00Jim's BlogA place to where I can record my Technical stuff that should be accessible from anywhere. It is mainly technical stuff I find interesting and I suppose it can be looked on as a modern Lab-book.jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.comBlogger83125tag:blogger.com,1999:blog-4676883399643590331.post-11454836853794039972019-01-06T17:46:00.001+00:002019-01-15T11:53:21.398+00:00Defender 300tdi Lucas 10AS Alarm Immobiliser (Spider) ProblemsWe have a 1997 Landrover Defender 300tdi that has given immobiliser problems intermittently. I had initially fixed the fuel solenoid as we would occasionally just come to a stop in the middle of the road , often at the most inopportune time! We could still get stranded though when the immobilser would not mobilise. <br />
<br />
I would get mobile again by using a length of wire from the +ve of the battery under the front passenger seat to the solenoid coil terminal to start the engine. The pain was I had to remove the rubber air pipe on the diesel turbo air inlet to access the solenoid terminals. Anyway this was at least a way of starting the Defender , I had to fix this problem. <br />
<br />
Looking on the <a href="https://forums.lr4x4.com/topic/86-the-definitive-alarm-spider-post/">forums for Defenders</a> many problems with immobiliser could be traced to what was called a <b>spider</b> located in front of the battery under the front passenger seat. It's basically a metal box and metal lid pop riveted together with a plastic box inside that has a 12 way connector , see photo below. I took this plastic box and opened it , a PCB (printed circuit board) was inside with quite a few resistors , diodes , capacitors , an IC and two relays.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://4.bp.blogspot.com/-TCJVa1URwpU/XD3Hz989u-I/AAAAAAAAF1w/kwB6Fmo6_AovRPpaFEklrLMq3NZiuNz2ACLcBGAs/s1600/SpiderBox.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="474" data-original-width="435" height="320" src="https://4.bp.blogspot.com/-TCJVa1URwpU/XD3Hz989u-I/AAAAAAAAF1w/kwB6Fmo6_AovRPpaFEklrLMq3NZiuNz2ACLcBGAs/s320/SpiderBox.png" width="293" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The so called Spider</td></tr>
</tbody></table>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
I inspected the board solder joints and the flow soldering was not very good , the solder was very dull not nice and shiny like it should be. The soldering on the relays was the worst and there appeared to be cracks round the relay main pins. I think the flow solder was not hot enough or the speed was too high through the flow solder machine when this board was manufactured. It did not wet the metal frame pins of the relays because they wicked away the heat causing poor solder connections. See the photos below showing two different cracks in the solder on two larger solder pads. Over the years the cracks grew due to temperature variations and vibrations and made the immobiliser very intermittent. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-phtuUiE1UC0/XD3JkwdFMPI/AAAAAAAAF18/7P4efls38dAy0MB91D98KcoDV0mN1mzPgCLcBGAs/s1600/2019-01-05%2B15.18.18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="240" data-original-width="320" src="https://1.bp.blogspot.com/-phtuUiE1UC0/XD3JkwdFMPI/AAAAAAAAF18/7P4efls38dAy0MB91D98KcoDV0mN1mzPgCLcBGAs/s1600/2019-01-05%2B15.18.18.jpg" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-RmePzJOVR3k/XD3Jo3-7NFI/AAAAAAAAF2A/Ii_9SpHqc34WTFImQHZy6WZg5eXRP3TwwCLcBGAs/s1600/2019-01-05%2B15.18.49.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="240" data-original-width="320" src="https://1.bp.blogspot.com/-RmePzJOVR3k/XD3Jo3-7NFI/AAAAAAAAF2A/Ii_9SpHqc34WTFImQHZy6WZg5eXRP3TwwCLcBGAs/s1600/2019-01-05%2B15.18.49.jpg" /></a></div>
<br />
<br />
To fix this I re-soldered the whole board , every single connection , using a nice hot 350 DegC temperature controlled soldering iron. The solder joints were now nice and shiny and no cracks in the joints. I then cleaned the flux left on the board after the soldering by using IPA (isopropol alcohol). I tested the repair and the Defender started first time , before it wouldn't. This looks like the problem has been fixed. With the board like new it was refitted into its plastic box , cable plugged in and then fitted into the metal box. This metal box was then installed in its proper place under the passenger seat. Hope this helps someone with similar problems. <span style="color: red;">Remember you are responsible for your own safety if attempting repairs of this nature.</span> Job done! jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-30464630773185962242018-05-30T12:44:00.000+01:002018-05-31T10:36:47.083+01:00CNC 6040 Spindle ControlNote: This is only an on - off control there is no speed control due to limitations on the CNC control box , you set the speed using the potentiometer on the VFD (Variable Frequency Drive). To be able to control the spindle connected to the NowForever VFD Spindle drive , the following is required. The Parallel port pin used was P1 deduced from the YooCNC PCB silk-screen markings RLY - P1 , this pin controls the Relay on this board. The contacts of this relay were wired in to the terminals X1 and COM on the NowForever VFD , see photos below. The <a href="http://linuxcnc.org/docs/html/config/stepconf.html">LinuxCNC settings</a> were in Stepper Configuration Wizard -> Parallel Port Setup -> Outputs (PC to Mill) Pin 1: Spindle ON , this enables the control of the spindle. The Spindle on and off buttons will now work on the LinuxCNC Axis GUI. <br />
<br />
The G Codes required for turning on the spindle are <br />
<pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;">M3 S1</code> </pre></pre><br />
then delay 5 Seconds to allow spindle spin up <br />
<pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;">G4 P5.0</code> </pre></pre><br />
and for turning spindle off.<br />
<pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;">M3 S0</code></pre></pre><br />
For milling PCBs I added these g codes to the software <a href="http://flatcam.org/">FlatCAM</a> Options Tab.<br />
<br />
Prepend to G Code <br />
<pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;">M3 S1
G4 P5.0</code></pre></pre><br />
and Append to G Code <br />
<pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;">M3 S0</code></pre></pre><br />
This then means when the G Code is generated from my PCB design at the beginning of the job the spindle will spin up wait 5.0 Seconds start milling and finally will stop the Spindle at the end of the job. This hopefully will reduce the wear on the spindle by only having it on when it is doing some milling. <br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://3.bp.blogspot.com/-6ZjIcv1ZYaU/Ww6Ov8EGeoI/AAAAAAAAC-k/FesOwGFTDdk5-DQRiq48RrXSUe4swY9cACLcBGAs/s1600/2018-05-30%2B10.35.54.jpg" imageanchor="1" ><img border="0" src="https://3.bp.blogspot.com/-6ZjIcv1ZYaU/Ww6Ov8EGeoI/AAAAAAAAC-k/FesOwGFTDdk5-DQRiq48RrXSUe4swY9cACLcBGAs/s320/2018-05-30%2B10.35.54.jpg" width="320" height="163" data-original-width="1575" data-original-height="803" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-izoJUBhg4Co/Ww6OwEyu9dI/AAAAAAAAC-o/RtaVKyvxx_IPscA0x2rdmcMXnszR1xMYQCLcBGAs/s1600/2018-05-30%2B10.36.05.jpg" imageanchor="1" ><img border="0" src="https://1.bp.blogspot.com/-izoJUBhg4Co/Ww6OwEyu9dI/AAAAAAAAC-o/RtaVKyvxx_IPscA0x2rdmcMXnszR1xMYQCLcBGAs/s320/2018-05-30%2B10.36.05.jpg" width="320" height="163" data-original-width="1575" data-original-height="803" /></a></div>jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-22490771873678791652018-01-11T11:29:00.003+00:002018-05-30T12:53:21.323+01:00BT Infinity Finally!I have finally received super-fast broadband and it was enabled on Wednesday morning around 10am. I never noticed till a day later when I looked at my MRTG speed graphs and noticed the upload had risen from 1Mbps to 13Mbps!!! The download speed stayed at the usual just below 15Mbps but this is because the <a href="https://oss.oetiker.ch/mrtg/">MRTG</a> graphing only uses the last valid number when in fact the reading actually goes off-scale. I re-tuned the Download speed graph value to 60Mbps and it looks sensible now.<div class="separator" style="clear: both; text-align: center;"><a href="https://2.bp.blogspot.com/-GgbSo2ssRz4/WldM_fOYtmI/AAAAAAAAC64/5jZxDYOxTQg464t6h9G95FF-IfakojhTgCLcBGAs/s1600/pi-ntp-day.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-GgbSo2ssRz4/WldM_fOYtmI/AAAAAAAAC64/5jZxDYOxTQg464t6h9G95FF-IfakojhTgCLcBGAs/s320/pi-ntp-day.png" width="320" height="86" data-original-width="500" data-original-height="135" /></a></div><br />
So my surmising what the <a href="https://parkyjimbo.blogspot.co.uk/2017/03/bt-infinity-in-closer-cabinet.html">AIO pavement spray painting</a> meant ie signifying the installation of a all-in-one <a href="https://www.thinkbroadband.com/guides/fibre-fttc-ftth-broadband-guide">FTTC</a> was correct. This post may also give someone whose internet comes from a far away cabinet the comfort that they may eventually get a cabinet closer to their home like in my case , I was originally connected to a cabinet ~1.5km away then moved to a new cabinet that is only 600m away. <br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-Tga3RkAeGSo/WMlATLB9QhI/AAAAAAAAC1g/991cRiG0GCMB9pbmZgYsZynhlIfE9Q-LACLcB/s1600/2017-03-11%2B16.21.43.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-Tga3RkAeGSo/WMlATLB9QhI/AAAAAAAAC1g/991cRiG0GCMB9pbmZgYsZynhlIfE9Q-LACLcB/s320/2017-03-11%2B16.21.43.jpg" width="320" height="180" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://4.bp.blogspot.com/-e4NIW8QGUHg/WoFxIn3VwxI/AAAAAAAAC8U/i6GRidwoJ4w_20A4dlcVlRBAAhlZC14rQCLcBGAs/s1600/FTTCInfinity.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-e4NIW8QGUHg/WoFxIn3VwxI/AAAAAAAAC8U/i6GRidwoJ4w_20A4dlcVlRBAAhlZC14rQCLcBGAs/s320/FTTCInfinity.jpg" width="320" height="191" data-original-width="1600" data-original-height="955" /></a></div><br />
Below shows the now stablised modem negotiated speeds , you can see a little step increase in downstream speed about midway on the graph and this may be down to a period of line speed training.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://3.bp.blogspot.com/-FM3xQR2YGzo/WoFz3F1ZGHI/AAAAAAAAC8g/u-7ZJ9FlVFg7oPskv6qFvHvBxurldhj2wCLcBGAs/s1600/pi-ntp-day.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-FM3xQR2YGzo/WoFz3F1ZGHI/AAAAAAAAC8g/u-7ZJ9FlVFg7oPskv6qFvHvBxurldhj2wCLcBGAs/s320/pi-ntp-day.png" width="320" height="86" data-original-width="500" data-original-height="135" /></a></div><br />
I have also been graphing actual measured download/upload speeds to various servers around the country , chosen at random every fifteen minutes or so. On the graph below you can see a baseline roughly between 30Mbps and 35Mbps for download speed , the upload speed is around 8Mbps most of the time. <br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://2.bp.blogspot.com/-lZH1C5ngyZM/WoF6tL3i3-I/AAAAAAAAC8w/kIushqKl-UoxZcdHrtPuVQF-kEN8gCwxACLcBGAs/s1600/DwnUp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-lZH1C5ngyZM/WoF6tL3i3-I/AAAAAAAAC8w/kIushqKl-UoxZcdHrtPuVQF-kEN8gCwxACLcBGAs/s320/DwnUp.png" width="320" height="161" data-original-width="1003" data-original-height="506" /></a></div><br />
I have also noticed the gradual increase in Download speeds , this seems to be done in steps , as seen in the graph I recorded.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://2.bp.blogspot.com/-rlZ_MjGLZ2U/WqEmZZfzdDI/AAAAAAAAC9s/rDRlky_zmzQicTvBiQqtxz7nbxvPu2IvQCLcBGAs/s1600/emoncms.png" imageanchor="1" ><img border="0" src="https://2.bp.blogspot.com/-rlZ_MjGLZ2U/WqEmZZfzdDI/AAAAAAAAC9s/rDRlky_zmzQicTvBiQqtxz7nbxvPu2IvQCLcBGAs/s320/emoncms.png" width="320" height="163" data-original-width="1575" data-original-height="803" /></a></div>jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-33693265901903614632017-10-18T11:30:00.000+01:002017-10-23T15:19:03.521+01:00File resolv.conf changed on rebootThe file /etc/resolv.conf was being reset and losing the correct nameserver on my Raspberry Pi after a reboot. The unfriendly way of fixing this was to set the immutable flag of the file using :- <pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code style="color: black; word-wrap: normal;">sudo chattr -i /etc/resolv.conf </code>
</pre></pre>It worked but I know this isn't the correct way to do it , but hey-ho life's too short....jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-70225865735835533502017-09-26T10:49:00.000+01:002017-10-18T16:53:58.824+01:00Broken Ubuntu Mate DesktopI had Ubuntu 16.04 LTS installed as a guest on a Windows 10 OS. The VM was shutdown uncleanly and after that its Mate Desktop wouldn't run properly. I re-installed the MATE Desktop using the following command.<pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code style="color: black; word-wrap: normal;">apt-get install ubuntu-mate-desktop --reinstall </code>
</pre></pre>After the re-install it worked fine with no problems. I'll remember to shutdown the VM properly next time.jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-1074421506487035522017-08-04T10:19:00.002+01:002017-08-04T10:30:26.981+01:00Virtualbox USB ProblemsUsing a PC running <a href="https://www.ubuntu.com/">Ubuntu</a> with <a href="https://www.virtualbox.org/">Virtualbox</a> using Windows 10 as the guest I found I could not add usb devices using the add new usb filter. After a bit of searching I found information about the issue <a href="https://stackoverflow.com/questions/20021300/usb-devices-are-not-recognized-in-virtualbox-linux-host">here</a>.<br />
I had to run the following command to get it to work , remember to log out and log back in after running the command.<br />
<code>sudo adduser $USER vboxusers</code><br />
After that the add USB devices filter worked fine.jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-76243133233742126472017-06-30T12:31:00.001+01:002017-06-30T12:40:09.263+01:00iAQ-CORE_C I²C Problems<div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-WWucYtsFoDY/WVY4ipPWbmI/AAAAAAAAC28/AIVJ_SFB6yYdU_ejIsPFmKKbfX3GVmapgCLcBGAs/s1600/iaq.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-WWucYtsFoDY/WVY4ipPWbmI/AAAAAAAAC28/AIVJ_SFB6yYdU_ejIsPFmKKbfX3GVmapgCLcBGAs/s320/iaq.png" width="259" height="320" data-original-width="649" data-original-height="803" /></a></div>Problems with the <a href="http://ams.com/eng/Products/Environmental-Sensors/Air-Quality-Sensors/iAQ-core-C">iAQ-CORE-C</a> Indoor Air Quality Sensor Module. I built the module onto a breadboard pcb and while testing I found that it would not work. I couldn't detect the device on the I²C bus of the Raspberry Pi I was using. Although I could use other devices on the bus without a problem , I found a lot of <a href="https://duckduckgo.com/?q=i2c+clock+stretching&t=h_&ia=web">forums</a> with entries about <a href="http://www.advamation.com/knowhow/raspberrypi/rpi-i2c-bug.html">clock stretching</a> causing problems for the Broadcom SoC I²C bus. I even tested it on an Arduino and no data from the device was detected. After a long time checking and testing the breadboard I came across an error in my wiring that turned out to be the problem. The wire for the SDA Pin 4 was connected to NC Pin 1 on its way off the board to the Raspberry Pi. There is no mention in the manufacturers data sheet not to connect to this pin it even says not connected. I spent a fair amount of time debugging this fault and eventually got it workingjimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-4537060428244021492017-03-15T13:33:00.000+00:002018-08-02T14:58:14.744+01:00BT Infinity in a Closer CabinetI have BT infinity but this gives about 15Mbps download 1Mbps upload , not very good really. The reason is I am about 1.5km from the Cabinet providing my FTTC so the attenuation in the copper and increased noise pickup causes the drop in speed. I however noticed some contractor white spray painted symbols on the pavement about 200 metres from my house with the letters A.I.O and a box shape , see my photo below.<div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-Tga3RkAeGSo/WMlATLB9QhI/AAAAAAAAC1g/991cRiG0GCMB9pbmZgYsZynhlIfE9Q-LACLcB/s1600/2017-03-11%2B16.21.43.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-Tga3RkAeGSo/WMlATLB9QhI/AAAAAAAAC1g/991cRiG0GCMB9pbmZgYsZynhlIfE9Q-LACLcB/s320/2017-03-11%2B16.21.43.jpg" width="320" height="180" />AIO</a></div>I think the AIO stands for an <a href="http://www.kitz.co.uk/adsl/fttc-cabinets.htm">All In One Cabinet</a> that BT sometimes install in outlying areas serving a smaller number of subscribers than is typical. <br />
The main BT cable bundle that serves my house is in the duct marked BT in the picture below , so I am wondering/hoping that I will get moved from the far away one to this A.I.O cabinet? This would mean I could get true infinity speeds so I'll just have to cross my fingers and hope that this will happen. Update , <a href="https://parkyjimbo.blogspot.co.uk/2018/01/bt-infinity-finally.html">got superfast broadband</a>.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://4.bp.blogspot.com/-y663SoVHF6I/WMlAggecISI/AAAAAAAAC1k/zs5P6UeEjK0VCmErZOq8xX2-wgIb-CthgCLcB/s1600/2017-03-11%2B16.21.34.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-y663SoVHF6I/WMlAggecISI/AAAAAAAAC1k/zs5P6UeEjK0VCmErZOq8xX2-wgIb-CthgCLcB/s320/2017-03-11%2B16.21.34.jpg" width="320" height="180" /></a></div>jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-17370829012420762592017-01-25T09:45:00.002+00:002017-10-18T17:03:12.969+01:00Getting ESPlorer to Run on Mint 17.4I was having problems getting <a href="https://esp8266.ru/esplorer/">ESPlorer</a> to run on my Linux machine , this to program an <a href="http://www.espruino.com/ESP8266">ESP8266</a> <a href="https://www.wemos.cc/product/d1-mini.html">Wemos D1 Mini Clone</a> with <a href="https://github.com/babgvant/NodeMCU/tree/master/433-HTTP">Lua</a> , html content and an <a href="https://github.com/bwssytems/ha-bridge">HA Bridge</a> running on a <a href="https://www.raspberrypi.org/">Raspberry Pi</a> for use with an Amazon Echo to control some <a href="https://www.missingremote.com/guide/diy-433mhz-smart-wi-fi-switches-amazon-echo-and-vera-control-support">RF remote control mains sockets</a>. The error displayed from the console was :- <pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code style="color: black; word-wrap: normal;"># A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe595a40009, pid=11774, tid=11803
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libjava.so+0x1d009] JNU_GetEnv+0x19
</code></pre></code></pre>I used the command :- <br />
<pre><code><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code style="color: black; word-wrap: normal;">sudo update-alternatives --config java </code></pre></code></pre>and had the choice of either java-8-openjdk-amd64 or java-9-openjdk-amd64 on my machine. The default was java-9-openjdk-amd64 so I selected java-8-openjdk-amd64 and ESPlorer then worked without issue , I hope this helps someone in the same position. jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-43215224936325362702016-08-18T12:20:00.002+01:002016-08-18T12:20:56.855+01:003D Printing PLA Not StickingI have found that using blue masking tape works for helping adhesion of PLA on heated build plate. Though the brand I bought was not very good in that the print wouldn't stick to the plate. 3M blue masking tape is apparently the best for this. While I waited for this tape to arrive I used hairspray sprayed onto the glass build plate , this provided good adhesion for my prints. I like the idea of the blue tape as it's less messy than the hairspray method. jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com1tag:blogger.com,1999:blog-4676883399643590331.post-45559986835002425822016-08-18T10:20:00.002+01:002016-08-18T10:21:17.339+01:00CTC Replicator 1 (Dual) Clone RFI problemsOccasionally the display on this printer becomes garbled and the reset has to be pressed. I also noticed that when this printer is on it affects the speed of my fibre to the cabinet FTTC broadband. As a licensed Radio Ham I did notice that there was little or no RFI (Radio Frequency Interference) filtering at the mains input or any ferrite sleeves over wires going to the motors and thermocouples etc. I think that the switchmode power supply is probably causing RFI to be transmitted along the mains and then it's being picked up by the telephone line so reducing the broadband speed. I will retrofit filters and ferrite's to reduce the noise made by this machine. The graph below shows the slowing effect of this printer on my broadband speed.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-V3GajSWC0EI/V7V9NZg-gYI/AAAAAAAACyk/A3OEhsI1uI4umyHd-8uCYyaEWQ0NdcwfQCLcB/s1600/pi-ntp_atten-week.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="86" src="https://1.bp.blogspot.com/-V3GajSWC0EI/V7V9NZg-gYI/AAAAAAAACyk/A3OEhsI1uI4umyHd-8uCYyaEWQ0NdcwfQCLcB/s320/pi-ntp_atten-week.png" width="320" /></a></div>
I have since moved my printer to another room away from the telephone line until I get it filtered better.<br />
<span style="color: red;">WARNING! modifications to your machine may
damage it or cause a FIRE! you have been warned. Be CAREFUL with Hot
things like your printer!</span>jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-54576588681456936952016-08-18T09:52:00.003+01:002016-08-18T09:59:47.237+01:00CTC Replicator 1 (Dual) Clone Printing Issues Still!I continued to have printing issues and it took me a while to solve. I found that the filament drive stepper was clicking all of the time and had got worse over time. I had disassembled the hot-end many times but nothing seemed to help. I then compared the hot-end channel 1 with channel 0 and noticed that the heater block was loose on the hot-end feed tube on channel 0. This meant that the block was heating up ok and the temperature was reasonably accurate but the heat transfer to the hot-end was very poor. This resulted in me having to turn up the heat to around 250 DegC to get any amount of flow from the nozzle. So I tightened the feed tube onto the heat block and re-assembled everything , immediately it began to print like new again. I was able to back off the digipot values to 118 from 122 on the printer settings and no feed clicking was evident during extrusion. Happy days!<br />
<span style="color: red;">WARNING! modifications to your machine may damage it or cause a FIRE! you have been warned. Be CAREFUL with Hot things like your printer!</span>jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-24438436515439277962016-08-12T22:19:00.001+01:002016-08-18T09:59:22.491+01:00CTC Replicator 1 (Dual) Clone Extruder ClickingMy CTC Replicator 1 Clone (dual extruder) which I had for a good while and had done some really nice prints , then eventually I couldn't print anything. It would feed filament in a stop start fashion usually ending in a big bundle of filament. The symptom was the right extruder stepper drive just clicked when trying to drive filament though the hot end. I dismantled the 0.4mm nozzle and heat tube and found no blockages. I then set the extruder in motion heated but without the nozzle and it was still clicking while driving. It just seemed that the stepper motor didn't have enough torque to drive the filament. I looked around the interweb and there were mentions of digipots for controlling the drive current. So I connected my laptop via USB to my 3D printer and fired up the Makerbot Desktop software and looked at the digipot settings under Devices -> Device Settings , the setting for digipot A was 118 so I increased this to 122 , the maximum is 127. While I was there I changed the setting for channel B to 122 as well just in case its stepper drive had the same problem. I tried driving the filament again but nothing changed click , click , clicking Hmmm! I then pressed the reset button and this time when I drove the filament stepper there was no clicking , result! It appears that any changes made to the Device settings are only read in on boot so even if you change something the old value is still used until you press the system reset button whereby the settings are read in from the eeprom.<br />
<span style="color: red;">WARNING! modifications to your machine may damage it or cause a FIRE! you have been warned. Be CAREFUL</span><span style="color: red;"><span style="color: red;"> with Hot things like your printer</span>!</span>jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-72156045291485366502016-08-05T15:30:00.003+01:002016-08-05T15:53:19.933+01:00Makerbot on OS X Stuck in Fullscreen Mode!I have had trouble with OS X El Capitan Version 10.11.6 and Makerbot Version 3.9.1.1143. Once you have entered fullscreen on Makerbot you will not be able to go back to the windowed version using any of the standard key combinations like esc and the ctrl + cmd + F key , it will just plain not work. To fix this from the terminal , first create a copy of /Users/your_username/.config/MakerBot/MakerWare.ini something like MakerWare.ini.orig , then edit the MakerWare.ini file using vim and look for the WindowGeometry="..........." entry. If you remove the data after the = including the quotes " and replace it with default ( it should look like this WindowGeometry=default). Then save it , when you start Makerbot it should start back in windowed mode - hooray!!! I took ages to find out how to fix this , even forums acknowledged it was a problem but gave no solution , the fix worked , go me!jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com1tag:blogger.com,1999:blog-4676883399643590331.post-56940884891168784942015-05-18T17:53:00.003+01:002016-06-14T19:47:35.157+01:00Poor Man's Through-Hole PCB RivetFirst of all I have to thank <a href="https://retromaster.wordpress.com/2009/08/18/the-pcb-via-press/">Retromaster</a> for his descriptions on how to do through-hole contact riveting. My double-sided prototype PCBs are done on a CNC Router but originally I was using just flexible wire soldered on both sides of the PCB. This method I found just created big solder bumps , not much good for surface mount IC's with through-hole contacts directly under them. So to remedy this situation I used a drill press with a 3mm stainless rod mounted in the Chuck. I put short pieces (approx 2.6mm long = thickness of PCB 1.6mm + Protrusion on each side of PCB 0.5mm X 2 ) of tinned copper wire whose diameter matches closely the diameter of the via hole into the via for the through-hole connection. I positioned the 3mm rod in the chuck over the via to be riveted with the copper wire in the hole and gently rotated the drill press capstan. This pressed the copper wire into the hole. I relaxed the pressure on the PCB to allow the balancing of the head size of the rivet on both sides of the PCB. Below is a photo of some practice rivets and one via not riveted on a scrap PCB for practice, these rivets will have a light soldering using solder paste to ensure a good electrical connection. I am very pleased with this method of connecting vias on PCB prototypes.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-Tc-_A147pR0/VVoY98xt9SI/AAAAAAAACrQ/VIDt5tV8z48/s1600/Screenshot%2Bfrom%2B2015-05-18%2B17%3A37%3A18.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="153" src="https://3.bp.blogspot.com/-Tc-_A147pR0/VVoY98xt9SI/AAAAAAAACrQ/VIDt5tV8z48/s200/Screenshot%2Bfrom%2B2015-05-18%2B17%3A37%3A18.png" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Riveted through-hole connections<br />
<br /></td></tr>
</tbody></table>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com1tag:blogger.com,1999:blog-4676883399643590331.post-58525231460713711482015-03-05T12:51:00.003+00:002015-03-09T10:36:10.491+00:00BT Infinity and my HG612 VDSL2 Modem Firmware Upgrade<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-giE0oi_S1w8/VPhE98jHr5I/AAAAAAAACqk/4Wx7j3Zm-MY/s1600/Download_SpeedA.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="Speed kbps" border="0" src="http://3.bp.blogspot.com/-giE0oi_S1w8/VPhE98jHr5I/AAAAAAAACqk/4Wx7j3Zm-MY/s1600/Download_SpeedA.png" height="135" title="Home Download" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">My Home Download Speed</td></tr>
</tbody></table>
<span style="color: red;">Warning: If you attempt what I describe here you may reduce your modem's usability to that of a brick , remember you are in charge of your own destiny. Note: I have two modems one for experiments and the other as backup.</span><br />
<br />
I have been in the habit of using a <a href="http://www.raspberrypi.org/">Raspberry PI</a> to log my ADSL2+ then VDSL2 speeds for a while now. The graph above is the speed of my ADSL2+ until I got BT Infinity or FTTC (Fibre To The Cabinet) , the time is about a year in span and speed is in kbps. Point A is when my <a href="http://parkyjimbo.blogspot.co.uk/2012/11/improving-myadsl2-connection-speed.html">ADSL2+ speed</a> a took a dive due to a tree wearing through my overhead telephone line. It took <a href="http://home.bt.com/">BT</a> about a full month to fix the fault and remove the subsequent speed cap at Point B , it took two emails to the <a href="https://community.bt.com/">BT Community Forum</a> to get them to remove the cap even though they said that it had been removed , it hadn't.<br />
Between Point B and C you can see my speed was unstable with my router continually dropping connection and then re-syncing at different speeds. You can see how unstable it was even after the line repair compared with the lead up to Point A , perfect. I then had <a href="http://www.bt.com/infinity">BT Infinity</a> installed at Point C using a BT Openreach <span class="kitzsmall">Huawei EchoLife<b> </b></span>HG612 modem with <a href="http://www.kitz.co.uk/routers/hg612unlock.htm">unlocked firmware</a>. This allowed me to log speeds , it isn't something that is enabled by default with BT's stock modem.<br />
Between Points C and D it is not very stable speed wise , I have a long wire to the cabinet hence the lower than anticipated VDSL2 speed. So eventually I got a bit fed up with the variability of the connection speed so I tried new <a href="https://huaweihg612hacking.wordpress.com/">firmware</a> in my modem , this firmware has a newer binary blob driver for the Broadcom modem chipset. Point D shows the time the modem had the new firmware flashed , it is a higher speed and also very stable , fantastic. So the only thing that has changed is the firmware change on the HG612 at point D. This also just shows that the digital signal processing elements have been improved in this binary blob driver. Now I'm very impressed with the latest firmware for this modem , but it's a shame I've had to do all this firmware upgrade myself and that BT don't seem to be continually improving their modem firmware. This even though they do have <a href="https://huaweihg612hacking.wordpress.com/2011/08/01/what-does-the-btagent-do/">BTAgent</a> enabled to update firmware themselves.<br />
I have BTAgent disabled because I don't want them to disable my logging system with their new firmware. They seem more concerned with not allowing their customers to actually see how bad their broadband connections are by disabling useful functionality. It has been noted by others that some of the BT firmware updates rolled out via BTAgent have disabled Web Configuration and telnet access to these modems.<br />
Hope this helps you.jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-80987229093155961402014-12-01T13:11:00.000+00:002014-12-01T13:19:26.760+00:00Mercurial Repository DirectionI'm in the NewRepo directory in the local repository on my local machine and want to clone this to a remote repo. I had forgotten that the command order dictates the direction of the clone ie from my <b><i>local to remote</i></b> repo or <b><i>remote to local</i></b> repo<br />
local -> remote<br />
hg clone . ssh://user@usersURL.org/hg/myrepos/NewRepo<br />
remote -> local<br />
hg clone ssh://user@usersURL.org/hg/myrepos/NewRepo .jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-24396655220890210962014-08-10T19:01:00.003+01:002014-11-12T21:16:57.861+00:00LG 42LH3000 TV half pictureMy LG 42" Television Model No: 42LH3000 developed an intermittent fault where the left half of the picture on the screen would become noisy and garbled , see this <a href="https://www.youtube.com/watch?v=zJmJ76f0PdE" target="_blank">video</a>.<br />
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-8T1hv3gYKhY/U-ezHTmqRDI/AAAAAAAACVc/YL7KyS8G6lU/s1600/LG42LH3000.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://2.bp.blogspot.com/-8T1hv3gYKhY/U-ezHTmqRDI/AAAAAAAACVc/YL7KyS8G6lU/s1600/LG42LH3000.jpg" height="225" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">LG 42LH3000 Television</td></tr>
</tbody></table>
<br />
It was worse when the TV was first switched on but got better as it warmed up. Over time it gradually got worse until no picture was shown on the left side at all. From an Internet search it seems that it is a common <a href="http://www.badcaps.net/forum/showthread.php?t=26477" target="_blank">problem</a> where the LCD driver transistor array die bonded to the flexi-circuit along the top of the LCD loses connection. These devices are driven by the <a href="https://www.google.co.uk/search?q=lg+tcon+board&hl=en-GB&biw=1920&bih=896&source=lnms&tbm=isch&sa=X&ei=QsxjVKSfAonXarDtgpgL&ved=0CAcQ_AUoAg" target="_blank">Tcon board</a> at the top middle of the TV via two flex-circuits, these connectors were checked for bad connection but were fine. It was later found that the flex-circuit transistor array on the far left of the LCD when pressed gently would fix the screen problem. A couple of thin cardboard spacers were cut and placed under the flexi-circuit transistor array ( I did this for all the arrays just in case the problem occurred on the remaining arrays ) to make it press more firmly against the silicon rubber pad on the removable front pressed steel bezel of the LCD. This helped ensure that the array would be pressed firmly by the silicon rubber pad when the front frame was replaced and the screws firmly tightened. I hope this helps someone with similar problems and thanks for reading.<br />
<br />
<b>Update:</b> After a day the screen had the same problem. Over the course of about a month I disassembled the TV three times trying a number of rubber gasket materials including sticky draught excluder , these worked for a while each time then the screen developed the fault again. On the fourth disassembly I removed the factory fitted flexible rubber pad pushing down on the leftmost flexi-circuit at the top of the screen. I did notice that the bonded transistor array on the flexi-circuit assembly was warm to the touch when the TV was running out of its case.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://4.bp.blogspot.com/-h5-yO59mSV8/VGPJQur7AMI/AAAAAAAACo4/mN31vhTyO7c/s1600/Screen%2BShot%2B2014-11-12%2Bat%2B20.55.00.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="172" src="https://4.bp.blogspot.com/-h5-yO59mSV8/VGPJQur7AMI/AAAAAAAACo4/mN31vhTyO7c/s320/Screen%2BShot%2B2014-11-12%2Bat%2B20.55.00.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Positions of Silicone Strips</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
So I ordered a sheet of thermally conductive silicone rubber 1.6mm thick , I cut three strips strips of this 10mm x 35mm and sandwiched two of them together. The other strip was placed carefully under the flexi-circuit transistor array die while the other two were placed on the top of the flexi-circuit transistor array die (see image above for rough positions or the rubber strips). This assembly would then be clamped once the front pressed steel frame bezel was screwed to the front LCD panel surround. After this was done the TV has worked since so I think the problem may also be related to the transistor array overheating and the thermally conductive silicone rubber is now removing the associated heat from the transistor array to the front metal bezel of the LCD panel. See the diagram for the the way the strips were positioned.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://1.bp.blogspot.com/-4UOxpEUGYtI/VGNu3b2UVmI/AAAAAAAACoU/s_50kY_jTys/s1600/LCDFlexiRepair.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="121" src="https://1.bp.blogspot.com/-4UOxpEUGYtI/VGNu3b2UVmI/AAAAAAAACoU/s_50kY_jTys/s400/LCDFlexiRepair.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Flexi-circuit Sandwich , Looking Down from Top Edge of Screen</td></tr>
</tbody></table>
<br />
<br />
<span style="color: red;">Remember that TV's have mains voltage and also higher voltages for the cold cathode strip lamps exposed when the rear cover of the TV is removed so be careful. You may by fiddling with these transistor arrays make the connection problem worse, but if the TV is already toast what have you got to lose. </span>jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com1tag:blogger.com,1999:blog-4676883399643590331.post-60251379829624523692014-06-08T18:39:00.005+01:002015-03-05T13:19:42.559+00:00Ford Fiesta ABS Light Stays On<div style="text-align: center;">
<br /></div>
The ABS warning light lit up continuously on my daughters Ford Fiesta Style 2005 plate.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-cF6Yx7P8JRc/U5ct7oWlmlI/AAAAAAAABRc/1u3zZDveR-4/s1600/abs1.png" imageanchor="1"><img alt="ABS Symbol" border="0" src="http://4.bp.blogspot.com/-cF6Yx7P8JRc/U5ct7oWlmlI/AAAAAAAABRc/1u3zZDveR-4/s1600/abs1.png" height="194" title="ABS Warning Symbol" width="200" /></a></div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
After a bit of Googling (other <a href="https://duckduckgo.com/">search engines</a> are available) to see what the fault could be and narrow down my search area. I finally got around to taking each wheel off in turn and checking the wheel speed sensors for damage. I found the drivers side front wheel speed sensor's wire insulation nearest the inside of the wheel arch had worn away exposing the copper wires inside, it had also worn away one of the wires. The sensor wire wearing away may have been due to a broken suspension spring that occurred a while before the ABS fault, the spring was replaced a while back. As a test repair I soldered the broken wires of the sensor back together and switched on the ignition but the ABS light stayed on. Disappointed I drove down our private road and after driving about 30 feet the light went out, <span style="color: red;">yeehaa! (this is me happy)</span>. Apparently from what I have read the ABS light will stay on even after a sensor repair until the ABS system detects pulses coming in from the sensor after the vehicle is in motion, only then will the light go out. I ordered and fitted a new sensor cable assembly to replace the temporarily repaired one as I didn't want to take chances with a repair on the ABS system, the ABS light has stayed out ever since.<br />
<span style="color: red;">If you undertake any work, be safe, remember cars are heavy, tools are dangerous if used incorrectly, you are responsible for your own actions.</span><br />
UPDATE:<br />
I bought one of these F-Super Diagnostic USB dongles to read the fault codes and reset the fault on the ABS ECU.<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"></td><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-nIX45TPw76E/U7mxXEON5aI/AAAAAAAABR0/C8ol56QMNss/s1600/F-Super.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://1.bp.blogspot.com/-nIX45TPw76E/U7mxXEON5aI/AAAAAAAABR0/C8ol56QMNss/s1600/F-Super.jpg" height="320" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"></td><td class="tr-caption" style="text-align: center;">F-Super Diagnostic Dongle</td><td class="tr-caption" style="text-align: center;"></td><td class="tr-caption" style="text-align: center;"></td></tr>
</tbody></table>
I installed the drivers and the software onto my laptop, plugged in the usb. I then plugged in the dongle to the OBD connector on the Fiesta, it is located at the bottom of the Steering column cover under a little flap. The software was run and the fault code read it was indeed signal loss from a wheel sensor. I wish I had this device before, so I knew what I was looking for when trying to fault find.<br />
I also reset the fault code on the ABS ECU so if the error comes back I'll know.jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-67253051885532351822014-05-15T15:34:00.001+01:002014-05-19T10:02:28.680+01:00Arduino Uno Ceramic ResonatorI was using an Arduino Uno to measure the PPS (pulse per second) pin from a GPS module to allow comparison with the PPS from a DS1307 RTC real time clock. I used interrupts 0 and 1 of the Arduino to trigger on rising edges of both PPS pins to trigger a reading from the micros() function and then subtract this reading from a subsequent micros() reading taken on the next rising edge so giving me a measure of the pulse width in microseconds, give or take four microseconds. Apparently the misnamed micros() function cannot make one microsecond measurements. Using this setup I was able to see that the 16MHz clock on the Arduino was out compared to the GPS PPS pin which from the datasheet was accurate to the tens of nano seconds range. The measured error I found was due to the Arduino using a resonator for its system clock, known for not being as accurate a crystal. The strange thing is there is already a crystal on the board for the USB serial chip, probably for accurate baud rates, it is 16MHz the value we need. I removed the resonator for the ATMega328P from the board and made a direct connection from the crystal oscillator output of the USB serial chip to the oscillator input of the ATMega328P. The board can still be programmed and now has a more accurate system clock for my measurements. I wonder if this is something that could be done to the Arduino to save the cost of a resonator. I eventually moved my sketch to a Stellaris Launchpad which has an 80MHz clock and can measure down to one microsecond with its appropriately named micros() function.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-1pGG0b-RFZo/U3Ti2lPlJpI/AAAAAAAABQ4/rLpaqs-SY_I/s1600/photo+2.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://1.bp.blogspot.com/-1pGG0b-RFZo/U3Ti2lPlJpI/AAAAAAAABQ4/rLpaqs-SY_I/s1600/photo+2.JPG" height="239" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">16MHz Resonator removed, center of PCB</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-U2rsmsluX1s/U3Ti7lRmamI/AAAAAAAABRA/E6CBXIdpKa8/s1600/photo+1.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://4.bp.blogspot.com/-U2rsmsluX1s/U3Ti7lRmamI/AAAAAAAABRA/E6CBXIdpKa8/s1600/photo+1.jpg" height="239" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">16MHz Osc Output of ATMega8U2 connected to ATMeg328P Osc input</td></tr>
</tbody></table>
jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-62073455077484107362014-04-10T00:12:00.001+01:002014-04-10T00:17:35.348+01:00Panasonic DECT Cordless Phone KX-TGA672E with faint LCD<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-3-5DDuLpYH8/U0XU4VRSFpI/AAAAAAAABPE/QifVFzQWa8E/s1600/phone.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-3-5DDuLpYH8/U0XU4VRSFpI/AAAAAAAABPE/QifVFzQWa8E/s1600/phone.jpg" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
This Panasonic DECT cordless phone developed a fault where the LCD was very faint and adjusting the contrast made no difference. This fault was traced to the flexi-circuit from the LCD to the main printed circuit board of the phone. It was bonded in some way to provide the electrical connection and was not soldered. To fix it I cut up a rubber eraser to the correct size the width of the flexi-circuit and a thickness of (1.5mm). This eraser helped to push down on the flexi-circuit when the white LCD housing was clicked onto the PCB. This fixed the fault and the LCD is now as it should be and the contrast adjust also works. Very annoying fault and a result of cheap manufacture not lasting very long.<br />
Thanks for reading, I hopes this helps someone. jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com2tag:blogger.com,1999:blog-4676883399643590331.post-79423254967687849712014-02-05T22:03:00.001+00:002017-10-18T17:05:20.178+01:00DG843GT List dhcpd Clients I wanted a way of listing connected devices that have been served an IP Address using the command line on my <a href="http://www.netgear.co.uk/home/products/wired-routers-and-modems/wired-routers/DG834.aspx#" target="_blank">DG843GT</a> ADSL2+ router with <a href="http://www.dgteam-mirror.talktalk.net/Home.html" target="_blank">DGTeam Firmware</a>. This firmware allows ssh login and the ability to change the <a href="http://parkyjimbo.blogspot.co.uk/2012/11/improving-myadsl2-connection-speed.html" target="_blank">noise margin</a> amongst other things.<br />
<br />
I began by looking at the link for attached devices on the admin webpage of the router. This URL <i>http://192.168.1.1/setup.cgi?todo=nbtscan&next_file=devices.htm</i> was examined and the command nbtscan was noticed.<br />
<br />
This was tried on the command-line but it didn't seem to do anything , <i>nbtscan --help</i> didn't help either.<br />
<br />
I thought it must be something to do with arguments so I tried <i>nbtscan 192.168.1.1</i> (my routers IP Address) this listed the attached devices so it's a result.<br />
<br />
I haven't written a script using expect to get and extract this info automatically yet but it's on my todo list.<br />
<br />
Example of the command and its output xx added to anonymise my MAC addresses<br />
<i># nbtscan 192.168.1.1</i><br />
<i>192.168.1.3;UNKNOWN;00:xx:83:2D:xx:BA</i><br />
<i>192.168.1.10;TORE;00:1F:xx:C8:xx:B5</i><br />
<i>192.168.1.12;UNKNOWN;00:1B:xx:07:xx:A3</i><br />
<i>192.168.1.13;DEB;D6:56:xx:FE:xx:57</i><br />
<i>192.168.1.22;DAD;00:30:xx:46:xx:2E</i>jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-86464489447310091062014-02-04T12:07:00.002+00:002014-02-18T10:43:41.611+00:00Linux Tinyos example for patching a header file I was having problems making a simple program for <a href="http://tinyos.stanford.edu/tinyos-wiki/index.php/Main_Page" target="_blank">TinyOS</a> using the command :-<br />
<br />
<i>make micaz</i><br />
<br />
The micaz is the target device and can be other devices like iris , telos & tmote etc. <br />
<br />
The error I got was:- <br />
<br />
<i>error: variable ‘McuSleepC__atm128PowerBits’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’</i><br />
<br />
From reading around the issue is documented <a href="http://code.google.com/p/tinyos-main/issues/detail?id=136" target="_blank">here.</a><br />
<br />
The patch is downloaded to the ~/tinyos-main/ directory and it patches the <i>atm128const.h</i> file to prevent the error messages.<br />
<br />
The patch is applied using the following command:-<br />
<br />
<i>patch -p1 < tinyos-atm128-const-fix.patch</i><br />
<br />jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com2tag:blogger.com,1999:blog-4676883399643590331.post-13028979939349112062014-01-29T12:30:00.002+00:002014-01-30T16:12:02.256+00:00Pentalobe Screwdriver Size Modification for the Macbook Air<h4>
<span style="font-weight: normal;"><span style="color: red;">Remember that using tools can be hazardous so wear eye protection and proceed with caution , if in doubt don't do it.</span></span></h4>
I had the annoying problem in that the Pentalobe screws for the Macbook Air I was repairing were too big for the Pentalobe screwdriver I had lying around , it was one supplied in a kit for replacing the LCD on an iPhone. I then realised that the head on this screwdriver has a stretched sort of taper so I basically ground the end of it with a grindstone fitted to my Dremel tool until it fitted the screw-head , testing the fit as I went. Job done , although the modified tool will now no longer fit the iPhone , that's not too much of a problem because iPhone replacement LCD's usually come with the tools required to do the job.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-d0n34w0VwoQ/Uuj0SaK7bNI/AAAAAAAABNw/jXAOAXrjAUM/s1600/penta.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://2.bp.blogspot.com/-d0n34w0VwoQ/Uuj0SaK7bNI/AAAAAAAABNw/jXAOAXrjAUM/s1600/penta.png" height="397" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Ground Down Pentalobe</td></tr>
</tbody></table>
jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0tag:blogger.com,1999:blog-4676883399643590331.post-12069385008541969482013-11-12T14:33:00.001+00:002014-01-29T12:45:45.588+00:00Wireless Charging on a Star S7189 Mobile Phone<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<h4 style="text-align: left;">
<span style="color: red; font-size: x-small;">Warning: while soldering be careful of solder fumes, wear eye protection and don't burn yourself. Note that charging batteries can be dangerous especially Li-Ion but the work detailed here means we are effectively generating our own internal 5V supply in the phone and connecting this directly to the USB power connections as they come into the phone. It is the equivalent of connecting a micro USB cable to the phone from a 5V USB charger, only its wireless. You have been warned and I am not responsible for your actions.</span></h4>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><br />
<h4 style="text-align: left;">
<span style="color: red; font-size: x-small;"> </span></h4>
<a href="http://2.bp.blogspot.com/-On8Ra9n2_Lo/UlVoA97hm6I/AAAAAAAABG4/8wuWH6Z0IPk/s1600/s7189.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://2.bp.blogspot.com/-On8Ra9n2_Lo/UlVoA97hm6I/AAAAAAAABG4/8wuWH6Z0IPk/s320/s7189.JPG" height="320" width="239" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">S7189 Display</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
This S7189 quad-core Android phone from Star was pretty cheap around £100 and it worked well. I found the front facing camera was not the best, but for the price I can live with it. Screen was also pretty good with a reasonable viewing angle. It was also pretty slick running any Apps I downloaded from Play with no signs of lagging.</div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-6QW_TQu_rZI/UlVjy06whnI/AAAAAAAABGc/CaoEWQX7idI/s1600/palmcase2.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://1.bp.blogspot.com/-6QW_TQu_rZI/UlVjy06whnI/AAAAAAAABGc/CaoEWQX7idI/s320/palmcase2.JPG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Palm Internal Charging Circuit</td></tr>
</tbody></table>
I wanted to add wireless charging to the S7189 so I didn't have to keep plugging the charger into the micro USB connector. I noticed on HackaDay that some people had added wireless charging to their mobile phone , this is what I wanted. So I ordered a wireless Palm case back from Ebay for £3.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-0L_2adMOUek/UlVjylAoB-I/AAAAAAAABGU/EjJsFTGzlCE/s1600/palmcase1.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://3.bp.blogspot.com/-0L_2adMOUek/UlVjylAoB-I/AAAAAAAABGU/EjJsFTGzlCE/s320/palmcase1.JPG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Palm Back Cover</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
I then using scissors cut out out the area of plastic bounded by the Plastic label with Palm on it. This was to allow one to be able to peel off the label more easily from inside the case. I then stuck the label on some plastic film (after removing the circuit board, coil and metal discs) to preserve its stickiness. <br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-W5F2LssslfM/UlVjx2Iz99I/AAAAAAAABGE/kRO7_ebi2jw/s1600/WiCharger.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://4.bp.blogspot.com/-W5F2LssslfM/UlVjx2Iz99I/AAAAAAAABGE/kRO7_ebi2jw/s320/WiCharger.JPG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Circuit Cut Out of Plastic Cover</td></tr>
</tbody></table>
The coil and circuit board were removed from the old Palm cover by soaking in a plastic tub of Methylated Spirits for a few hours to soften the double-side sticky tape holding circuit and coil onto the plastic cover.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-8-UY5X-3LNo/UlVjx40-VvI/AAAAAAAABGk/mnB5Cq1HUPs/s1600/WiCharger1.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://3.bp.blogspot.com/-8-UY5X-3LNo/UlVjx40-VvI/AAAAAAAABGk/mnB5Cq1HUPs/s320/WiCharger1.JPG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Sticky Cover Preserved</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-pqcyUVl1W88/UlVjx16hxjI/AAAAAAAABGA/MLw9eFrWH0s/s1600/WiCharger2.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://1.bp.blogspot.com/-pqcyUVl1W88/UlVjx16hxjI/AAAAAAAABGA/MLw9eFrWH0s/s320/WiCharger2.JPG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Stuck to Clear Film</td></tr>
</tbody></table>
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-2ijpppYBTho/UlVoA2tTyhI/AAAAAAAABG0/oce-oRHqDgI/s1600/S7189Back.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://4.bp.blogspot.com/-2ijpppYBTho/UlVoA2tTyhI/AAAAAAAABG0/oce-oRHqDgI/s320/S7189Back.jpg" height="238" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">S7189 Back with Cover Removed</td></tr>
</tbody></table>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
The S7189 internal back cover is removed (quite a few small black screws) exposing the Circuit board. I plugged in a Micro-USB adapter to find out where the center conductor was connected to on the Power PCB at the lower part of the phone using a multimeter set to continuity tone check. Ground was the metal tabs of the Micro-USB connector. I used Kapton tape to insulate the sticky copper foil I was using to route out power to the top of the back cover.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-K17y1AA-wCA/UphsiwPKsDI/AAAAAAAABM8/1Xy0YAHSFAU/s1600/S7189PCB.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://3.bp.blogspot.com/-K17y1AA-wCA/UphsiwPKsDI/AAAAAAAABM8/1Xy0YAHSFAU/s320/S7189PCB.jpg" height="320" width="240" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Ground Connection</td></tr>
</tbody></table>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
I then soldered flexible tinned insulated wire between the two Copper tabs next to battery, taking care not to overheat the plastic.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-Moresoj3--A/Uphszq7EFDI/AAAAAAAABNE/lzGylbKfusc/s1600/S7189Contacts.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://2.bp.blogspot.com/-Moresoj3--A/Uphszq7EFDI/AAAAAAAABNE/lzGylbKfusc/s320/S7189Contacts.jpg" height="273" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Routed Copper Tape</td></tr>
</tbody></table>
<br />
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-cr49XPebbZU/UnecUK1DxLI/AAAAAAAABKI/N9HvmPDaeMY/s1600/S7189WirelessBack.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://1.bp.blogspot.com/-cr49XPebbZU/UnecUK1DxLI/AAAAAAAABKI/N9HvmPDaeMY/s320/S7189WirelessBack.jpg" height="320" width="240" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Palm Charge Circuit Added to S7189 Back Case</td></tr>
</tbody></table>
The removed Palm charge circuit was stuck to the middle of the S7189 back cover using its original sticky cover. Of the two small square gold connectors to the left of the Kapton tape the Lower one is the +5V the upper one is 0V or Ground. <span style="color: red;">To be sure check the output yourself with a multi-meter to ensure you have the correct polarity before connecting it to your valuable phone.</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-eUqRuIwrO_U/UpTB_KipdXI/AAAAAAAABMo/-7TaTRwcIXU/s1600/S7189ScreenShot.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://1.bp.blogspot.com/-eUqRuIwrO_U/UpTB_KipdXI/AAAAAAAABMo/-7TaTRwcIXU/s320/S7189ScreenShot.png" height="320" width="177" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Phone Placed on Charger</td><td class="tr-caption" style="text-align: center;"><br /></td><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-xGENIqtKIz4/UpTB_CV8pwI/AAAAAAAABMw/RwFGpt_trCo/s1600/S7189ScreenShot1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://4.bp.blogspot.com/-xGENIqtKIz4/UpTB_CV8pwI/AAAAAAAABMw/RwFGpt_trCo/s320/S7189ScreenShot1.png" height="320" width="179" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Phone Now Charging</td></tr>
</tbody></table>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
The S7189 is now able to be charged either by using the Micro-USB or wirelessly via the Palm Touchstone charger. <span style="color: red;">Note: don't use both at the same time or there could be overcharging problems with subsequent overheating and fire from the battery and circuit boards. </span><br />
<br />
<br />
<br />jimbuzzhttp://www.blogger.com/profile/16031551908353903101noreply@blogger.com0