tag:blogger.com,1999:blog-84903012724587800612024-03-13T21:49:00.918-07:00Milan's BlogAnonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-8490301272458780061.post-11908521569961184112016-01-28T06:33:00.000-08:002016-01-28T06:33:38.364-08:00How do you know if your child is ill?If you have got gadgets to play with, you might as well put them to good use.<br />
<br />
Today I got a call from my sons teacher that my son had a headache. If I could come and pick him up. At home he fell asleep in my arms. And I was still in reach of my Flir One... ;-)<br />
<br />
<div style="text-align: center;">
Nothing abnormal here:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-VSYlPJJYdKY/Vqolhno2vdI/AAAAAAAAAFI/wTLkDyqQ8Ic/s1600/tygo_sick.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-VSYlPJJYdKY/Vqolhno2vdI/AAAAAAAAAFI/wTLkDyqQ8Ic/s320/tygo_sick.jpg" width="240" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
But in thermal you can clearly see he is a lot warmer than normal. (had to flip the picture, because I could only manage to take one upside down with one hand)</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-excZi6mJmaY/Vqolhd0Zo0I/AAAAAAAAAFE/v0t653KhBHE/s1600/tygo_sick_IR.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-excZi6mJmaY/Vqolhd0Zo0I/AAAAAAAAAFE/v0t653KhBHE/s320/tygo_sick_IR.jpg" width="320" /></a></div>
<div style="text-align: center;">
<br /></div>
Anonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.com0tag:blogger.com,1999:blog-8490301272458780061.post-53892938537920911482016-01-06T00:41:00.000-08:002016-01-06T01:09:58.154-08:00Happy 2016 and digital new years resolutions.<div class="separator" style="clear: both; text-align: center;">
Happy 2016.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I also have som new years resolutions. One of them is to pick up running an swimming again, to lose some of my excess weight. To log all my activities I use a Polar V800 with a H7. I've done so since oktober 2014 already, so I've got some nice statistics to play with.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.fitnessdigital.nl/images/productos/XL/6/PolarV800HRBlack.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.fitnessdigital.nl/images/productos/XL/6/PolarV800HRBlack.jpg" height="299" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
And yesterday I've also ordered a Polar Balance scale. This scale can send my weight via bluetooth to my V800 watch. After that all of your data will be synchronised to an app on my phone and from there on to the internet. DCRainmaker has a nice review on this scale.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.dcrainmaker.com/2016/01/polarbalance-scale-review.html" target="_blank">http://www.dcrainmaker.com/2016/01/polarbalance-scale-review.html</a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.dcrainmaker.com/images/2016/01/IMG_3780_thumb.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.dcrainmaker.com/images/2016/01/IMG_3780_thumb.jpg" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I do not have any statistiscs on my weight yet, as the scale is still in de mail, but here is a sample graph from my swim last night. It does seem that my heart rate and swim tempo ar a bit out of sync. I will inform polar on this, hope they can fix it.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-yhVveOvUogA/VozP3ZnySLI/AAAAAAAAAE0/RUysxmd1vwE/s1600/not_in_sync.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="155" src="http://3.bp.blogspot.com/-yhVveOvUogA/VozP3ZnySLI/AAAAAAAAAE0/RUysxmd1vwE/s400/not_in_sync.png" width="400" /></a></div>
<br />
<br />Anonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.com0tag:blogger.com,1999:blog-8490301272458780061.post-57447351199572563432015-07-22T05:22:00.000-07:002015-08-28T00:13:47.315-07:00Reducing mdadm speed for USB-RAID on RPi2.Last few days I've had a problem. At certain moments my LAN interface on my RPi2 stopped working, making the RPi2 unreachable from the network.<br />
The LAN interface internally runs on the same USB controller as the USB-ports. To debug my problems I've reduced my throughput to my USB flashdrives to 400kbit/s to offload the USB a bit.<br />
<br />
As <b>root/su</b> user I've given the next commands. The first reduces the throughput to around 400kbit/s the second one is to make sure a 10kbit/s throughput is guaranteed.<br />
<br />
<pre style="background-color: #eeeeee; border: 0px; color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;">echo 400 > /proc/sys/dev/raid/speed_limit_max</code></pre>
<pre style="background-color: #eeeeee; border: 0px; color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><span style="white-space: inherit;">echo 10 > /proc/sys/dev/raid/speed_limit_min</span></pre>
The result is a reduced throughput as expected. Now hope it will fix my problems.<br />
<br />
<span style="color: red;">Update: Problem <b>not</b> solved. Crunching brain to see what to do next. However speed was reduced, so I will keep this blog post online. Partial success.</span><br />
<span style="color: red;"><br /></span>
<span style="color: #38761d;">Update2: Problem solved. </span><br />
<span style="color: #38761d;">I run my Pi via an <a href="https://www.adafruit.com/products/1944" target="_blank">Adafruit Powerboost 500c</a>. While the output power of this device is enough the charge rate isn't. So the LiPo battery slowly drains. The product page already warned me. When the voltage is too low, the Pi dies and does not reboot. After that the battery charges again because of the lower current demand of the Pi that's not running anymore. I've modified my Powerboost 500c to get a charge rate of 600mA (out of spec), and now the setup runs fine for >10 days already. Time to upgrade to a <a href="https://www.adafruit.com/products/2465" target="_blank">Powerboost 1000c</a>.</span><br />
<span style="color: red;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-VOaac_OoJrI/Va-KnQoqk7I/AAAAAAAAAEY/6mU7-A-BjDQ/s1600/diskstats_throughput-pinpoint%253D1437544231%252C1437567856.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="394" src="http://3.bp.blogspot.com/-VOaac_OoJrI/Va-KnQoqk7I/AAAAAAAAAEY/6mU7-A-BjDQ/s640/diskstats_throughput-pinpoint%253D1437544231%252C1437567856.png" width="640" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-68wXbFj9XdA/Va-KL5ZjbJI/AAAAAAAAAEQ/S9Anugvk_7Q/s1600/diskstats_utilization-pinpoint%253D1437542943%252C1437566833%2B%25281%2529.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="384" src="http://1.bp.blogspot.com/-68wXbFj9XdA/Va-KL5ZjbJI/AAAAAAAAAEQ/S9Anugvk_7Q/s640/diskstats_utilization-pinpoint%253D1437542943%252C1437566833%2B%25281%2529.png" width="640" /></a></div>
<br />Anonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.com0tag:blogger.com,1999:blog-8490301272458780061.post-24576429652923908272015-05-26T00:48:00.000-07:002015-05-26T00:48:26.152-07:00Kenwood TM-D700 control head cable.Recently I've changed my mobile tranceiver from a Kenwood TM-D700 to a Yaesu FTM-400D.<div>
<br /></div>
<div>
With all the cables of the old installation still in the car, I needed a new separation cable to connect the control head on my TM-D700. After some hours looking for the proper layout of such a cable I've just found some text and no pictures. And because pictures say more than words I've made a picture for all of you.</div>
<div>
<br /></div>
<div style="text-align: center;">
Kenwood TM-D700 control head cable. </div>
<div style="text-align: center;">
RJ10 on one side for the control head (top), RJ11 on the other side for the transceiver (below).</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-sHxuLtz1qhE/VWQkIWTmE2I/AAAAAAAAAD0/nzPpXIf--BQ/s1600/TM-D700_head_cable.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://1.bp.blogspot.com/-sHxuLtz1qhE/VWQkIWTmE2I/AAAAAAAAAD0/nzPpXIf--BQ/s640/TM-D700_head_cable.jpg" width="522" /></a></div>
<div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.com4tag:blogger.com,1999:blog-8490301272458780061.post-4154494868890789582015-05-20T01:40:00.002-07:002015-05-20T01:54:13.829-07:00One of my USB flash drives in my software raid has failed. A challenge to find out which one.Af few months ago I had a brainwave. What if I would buy a few USB drives and configure them as a raid array on my Raspberry Pi2 B? Would this be stable enough to act as a secure drive to put files on? The answer is: YES.<br />
<br />
During the first few days I've had some failed drives, that I could reflash with a vendor tool and reformat to make them work again. The last few days I've been receiving new emails that something is wrong again.<br />
<br />
<blockquote class="tr_bq">
<pre wrap=""><span style="background-color: #cccccc;">This is an automatically generated mail message from mdadm
running on serverpi
A DegradedArray event had been detected on md device /dev/md0.
Faithfully yours, etc.
P.S. The /proc/mdstat file currently contains the following:
Personalities : [raid1]
md0 : active raid1 sdc1[4] sda1[0] sdb1[3](F)
15417216 blocks super 1.2 [3/2] [U_U]
unused devices: <none></span></pre>
</blockquote>
It looks like /dev/sdb1 failed. So I logged in to my Pi to try to repair it.<br />
<br />
First of all I used <i>"sudo mdadm -D /dev/md0"</i> to check my array.<br />
<br />
<blockquote class="tr_bq">
<span style="background-color: #cccccc;"><br />/dev/md0:<br /> Version : 1.2<br /> Creation Time : Sun Dec 14 09:28:08 2014<br /> Raid Level : raid1<br /> Array Size : 15417216 (14.70 GiB 15.79 GB)<br /> Used Dev Size : 15417216 (14.70 GiB 15.79 GB)<br /> Raid Devices : 3<br /> Total Devices : 3<br /> Persistence : Superblock is persistent<br /><br /> Update Time : Wed May 20 08:49:15 2015<br /> State : clean, degraded <br /> Active Devices : 2<br />Working Devices : 2<br /> Failed Devices : 1<br /> Spare Devices : 0<br /><br /> Name : serverpi:0 (local to host serverpi)<br /> UUID : 52b533f2:c23cf930:d90ba49f:0998349d<br /> Events : 1722237<br /><br /> Number Major Minor RaidDevice State<br /> 0 8 1 0 active sync /dev/sda1<br /> 1 0 0 1 removed<br /> 4 8 33 2 active sync /dev/sdc1<br /><br /> <b>3 8 17 - faulty spare /dev/sdb1</b></span></blockquote>
And sure enough, /dev/sdb1 is the problem. It is faulty an had been taken out of the array automatically.<br />
<br />
Now I have a challenge. I want to take this drive out, and reflash it again with the vendor tool, just to be safe. But which one is it??? They all look so similar ;-)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-OgBXFXSCuMg/VVwv57TjBkI/AAAAAAAAADQ/S4j9Q_KTYi0/s1600/flash.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="210" src="http://4.bp.blogspot.com/-OgBXFXSCuMg/VVwv57TjBkI/AAAAAAAAADQ/S4j9Q_KTYi0/s320/flash.jpg" width="320" /></a></div>
<br />
Luckily there is a way to find out.<br />
The raspberry Pi internally uses a USB HUB to connect the on board ethernet adapter as well as the four the external ports you see in the picture.<br />
<br />
If you give the command <i>"lsusb -t"</i> so can see how everything is populated on my (or your) Pi.<br />
<blockquote class="tr_bq">
<span style="background-color: #cccccc;">/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M<br /> |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/5p, 12M<br /> |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 12M<br /> |__ Port 2: Dev 4, If 0, Class=stor., Driver=usb-storage, 12M<br /> |__ Port 3: Dev 5, If 0, Class=stor., Driver=usb-storage, 12M<br /> |__ Port 5: Dev 6, If 0, Class=stor., Driver=usb-storage, 12M</span></blockquote>
OK, I've got flash drives on BUS 01 - Port 2,3&5. And nothing on Port4. So we have already learned that the top right port in the picture is Port4.<br />
<br />
And from previous trails I've found out that port 2&3 and 4&5 are on the same dual USB socket.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: center;">
<a href="http://3.bp.blogspot.com/-9hPDBW6UUoE/VVw7HjjEGYI/AAAAAAAAADg/Yl9PybYhvKA/s1600/rasp_usb.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-9hPDBW6UUoE/VVw7HjjEGYI/AAAAAAAAADg/Yl9PybYhvKA/s1600/rasp_usb.jpeg" /></a> </div>
<div style="text-align: center;">
<div style="text-align: left;">
So:
</div>
<table border="1">
<tbody>
<tr><td>Top left </td><td>Port2
</td></tr>
<tr><td>Bottom left </td><td>Port3</td></tr>
<tr><td>Top right </td><td>Port4</td></tr>
<tr><td>Bottom right </td><td>Port5</td></tr>
</tbody></table>
</div>
<br />
With the command <i>"sudo lshw"</i> you can find out what drives are connected to what USB-ports.<br />
<blockquote class="tr_bq">
<span style="background-color: #cccccc;"> *-scsi:0<br /> physical id: 5<br /> <b>bus info: usb@1:1.2</b><br /> logical name: scsi0<br /> capabilities: emulated<br /> *-disk<br /> description: SCSI Disk<br /> physical id: 0.0.0<br /> bus info: scsi@0:0.0.0<br /> <b>logical name: /dev/sda</b><br /> size: 14GiB (15GB)<br /> capabilities: partitioned partitioned:dos<br /> configuration: sectorsize=512 signature=c3072e18<br /> *-volume<br /> description: Windows FAT volume<br /> vendor: MSDOS5.0<br /> physical id: 1<br /> bus info: scsi@0:0.0.0,1<br /> logical name: /dev/sda1<br /> version: FAT32<br /> serial: 5663-89a9<br /> size: 14GiB<br /> capacity: 14GiB<br /> capabilities: primary fat initialized<br /> configuration: FATs=2 filesystem=fat<br /> *-scsi:1<br /> physical id: 6<br /> <b>bus info: usb@1:1.3</b><br /> logical name: scsi1<br /> capabilities: emulated<br /> *-disk<br /> description: SCSI Disk<br /> physical id: 0.0.0<br /> bus info: scsi@1:0.0.0<br /> <b>logical name: /dev/sdb</b><br /> size: 14GiB (15GB)<br /> capabilities: partitioned partitioned:dos<br /> configuration: sectorsize=512 signature=c3072e18<br /> *-volume UNCLAIMED<br /> description: Linux filesystem partition<br /> physical id: 1<br /> bus info: scsi@1:0.0.0,1<br /> capacity: 14GiB<br /> capabilities: primary<br /> *-scsi:2<br /> physical id: 7<br /> <b>bus info: usb@1:1.5</b><br /> logical name: scsi2<br /> capabilities: emulated<br /> *-disk<br /> description: SCSI Disk<br /> physical id: 0.0.0<br /> bus info: scsi@2:0.0.0<br /> <b>logical name: /dev/sdc</b><br /> size: 14GiB (15GB)<br /> capabilities: partitioned partitioned:dos<br /> configuration: sectorsize=512 signature=c3072e18<br /> *-volume<br /> description: EXT4 volume<br /> vendor: Linux<br /> physical id: 1<br /> bus info: scsi@2:0.0.0,1<br /> logical name: /dev/sdc1<br /> version: 1.0<br /> serial: 7e3913ee-a998-4db2-942f-8c1c4f11fea4<br /> size: 14GiB<br /> capacity: 14GiB<br /> capabilities: primary journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized</span></blockquote>
<span style="background-color: #cccccc;"> <span style="background-color: white;"> </span></span><br />
<span style="background-color: #cccccc;"><span style="background-color: white;">Oops. I've seem to have a FAT-partition on /dev/sda1 and a EXT4 partition on /dev/sdc1. Shame on me. I'll fix that later. First repair the hardware... </span></span><br />
<span style="background-color: #cccccc;"><span style="background-color: white;"><br /></span></span>
<span style="background-color: #cccccc;"><span style="background-color: white;">So I have /dev/sdb on </span></span><span style="background-color: white;">usb@1:1.3. This should be the lower left USB-socket.</span><br />
<span style="background-color: white;">Let's pull that one and repair it with that nasty online Transcend windows-tool.</span><br />
<br />
<span style="background-color: white;">OK repair succeeded. Now just a few more actions to add the drive to the array and rebuild it. </span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">By using <i>"sudo lshw"</i> again you can find out what drive letter the new/repaired USB-drive got. In my case it's now /dev/sdd.</span><br />
<blockquote class="tr_bq">
<span style="background-color: white;"> *-scsi:1<br /> physical id: 6<br /> bus info: usb@1:1.3<br /> logical name: scsi3<br /> capabilities: emulated<br /> *-disk<br /> description: SCSI Disk<br /> physical id: 0.0.0<br /> bus info: scsi@3:0.0.0<br /> logical name: /dev/sdd</span></blockquote>
<br />
<span style="background-color: white;">Just a few more commands to get back on track.</span><i><span style="background-color: white;"><br /></span></i><br />
<i><span style="background-color: white;">sudo fdisk -> option "t" -> change partition system id to linux (83) (I hate Windows)</span></i><br />
<i><span style="background-color: white;">sudo mkfs.ext4 /dev/sdd (make a linux ext filesystem /dev/sdd1)</span></i><br />
<i><span style="background-color: white;">sudo mdadm /dev/md0 -r detached (to remove the detached drive from the array) </span></i><br />
<i><span style="background-color: white;">sudo mdadm --add /dev/md0 /dev/sdd1 (add the new drive back to the array)</span></i><br />
<span style="background-color: white;"><i>sudo mdadm -D /dev/md0 (check the array status).</i></span><br />
<span style="background-color: white;"><br /></span>
<br />
<blockquote class="tr_bq">
<span style="background-color: white;"><span style="background-color: #cccccc;">/dev/md0:<br /> Version : 1.2<br /> Creation Time : Sun Dec 14 09:28:08 2014<br /> Raid Level : raid1<br /> Array Size : 15417216 (14.70 GiB 15.79 GB)<br /> Used Dev Size : 15417216 (14.70 GiB 15.79 GB)<br /> Raid Devices : 3<br /> Total Devices : 3<br /> Persistence : Superblock is persistent<br /><br /> Update Time : Wed May 20 10:18:41 2015<br /> State : active, degraded, recovering <br /> Active Devices : 2<br />Working Devices : 3<br /> Failed Devices : 0<br /> Spare Devices : 1<br /><br /> Rebuild Status : 0% complete<br /><br /> Name : serverpi:0 (local to host serverpi)<br /> UUID : 52b533f2:c23cf930:d90ba49f:0998349d<br /> Events : 1729099<br /><br /> Number Major Minor RaidDevice State<br /> 0 8 1 0 active sync /dev/sda1<br /> 3 8 49 1 spare rebuilding /dev/sdd1<br /> 4 8 33 2 active sync /dev/sdc1</span></span></blockquote>
<span style="background-color: white;"></span><br />
<span style="background-color: white;">Now we wait for the rebuild and we are back in business.</span><br />
<br />
If you want to know more detail about the rebuild status, you could do <i>"watch cat /proc/mdsat"</i> and see your rebuild progress. I will not wait for this as it will take another 474.6 minutes.<br />
<blockquote class="tr_bq">
Personalities : [raid1] <br />
md0 : active raid1 sdd1[3] sdc1[4] sda1[0]<br />
15417216 blocks super 1.2 [3/2] [U_U]<br />
[>....................] recovery = 2.9% (457856/15417216) finish=474.6min speed=524K/sec<br />
<br />
unused devices: <none></blockquote>
I hope this helped you. If not it will surely help me the next time one of my drives drive fails.<br />
<br />
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.com0tag:blogger.com,1999:blog-8490301272458780061.post-33575272775943787282015-04-29T00:42:00.000-07:002016-09-08T20:04:37.456-07:00Low pass filter added.To do's of the previous post I have worked on:<br />
<span style="font-size: x-small;">
- Make graphs of the spurious level with normal <strike>and shifted oscillator.</strike></span><br />
<span style="font-size: x-small;">
- Make a proper low pass filter between oscillator and DVB-T dongle to
see if I can reduce noise (the signal into the mixer is not a clean sine
wave, as the Si5351a outputs a square wave). </span><br />
<strike><span style="font-size: x-small;">
- Make a script to use or alter <a href="http://kmkeen.com/rtl-power/" target="_blank">rtl_power</a> to make frequency plots with spurious-bypass option.</span></strike><br />
<br />
As I mentioned the clock from the Si5351a board has a square wave output.<br />
Here is the signal at the input of the R820t mixer at an 8mA drive level, and without filtering (just the decoupling capacitor and 82 ohm load resistor).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-eX2hFL_7slg/VT-eSBydE-I/AAAAAAAAACY/2xlbn5GMioM/s1600/8ma.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://2.bp.blogspot.com/-eX2hFL_7slg/VT-eSBydE-I/AAAAAAAAACY/2xlbn5GMioM/s1600/8ma.png" width="320" /></a></div>
<br />
With the help of rtl_power and Matlab (or Excell) you can see the amount of noise you will have with no antenna connected. I've used the exact same command as on the <a href="http://kmkeen.com/rtl-power/" target="_blank">http://kmkeen.com/rtl-power/</a> page. The antenna input was loaded with a 50 Ohm load.<br />
<br />
<div style="text-align: center;">
<i>rtl_power -f 24M:1.7G:1M -g 50 -i 15m -1 noise.csv</i> </div>
<br />
<table 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/-J3TQFb5FiNg/VT-Zf2rO0JI/AAAAAAAAABs/bEQqD1QvCYo/s1600/8mA_no_filter.png" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="218" src="https://4.bp.blogspot.com/-J3TQFb5FiNg/VT-Zf2rO0JI/AAAAAAAAABs/bEQqD1QvCYo/s1600/8mA_no_filter.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Noise at 8mA drive level, without lowpass filter.</td></tr>
</tbody></table>
Wow lots of spurious. But bare in mind that I did not alter anything else to the DVB-t dongle yet. No metal case. USB not filtered, etc...<br />
<br />
Time to add in a low pass filter.<br />
On the website <a href="http://www.wa4dsy.net/cgi-bin/lc_filter3?FilterResponse=Lowpass&poles=3&cutoff=30&funits=MHZ&Z=50" target="_blank">http://www.wa4dsy.net/filter/filterdesign.html</a> you can model a low pass filter in a second. I've asked for a 3-pole filter with a cutoff frequency of 30MHz and a load of 50 Ohms. If you click the link below you will see what filter was calculated.<br />
<br />
<a href="http://www.wa4dsy.net/cgi-bin/lc_filter3?FilterResponse=Lowpass&poles=3&cutoff=30&funits=MHZ&Z=50" target="_blank">http://www.wa4dsy.net/cgi-bin/lc_filter3?FilterResponse=Lowpass&poles=3&cutoff=30&funits=MHZ&Z=50</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-65UHblmJejs/VT-HXf4i8EI/AAAAAAAAABU/_lnIjT4BBWY/s1600/filter.gif" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="125" src="https://1.bp.blogspot.com/-65UHblmJejs/VT-HXf4i8EI/AAAAAAAAABU/_lnIjT4BBWY/s1600/filter.gif" width="200" /></a></div>
<div style="text-align: center;">
</div>
<div style="text-align: center;">
<br /></div>
<table bgcolor="linen" border="" style="margin-left: auto; margin-right: auto; text-align: left;"><tbody>
<tr align="center"><td><br /></td><td colspan="3">Part Values</td></tr>
<tr align="center"><td>Part</td><td><b>Butterworth</b></td><td>Chebyshev 0.1 DB</td><td>Bessel</td></tr>
<tr align="center"><td>L1</td><td><b>0.2653 uH</b></td><td>0.3801 uH</td><td>0.0895 uH</td></tr>
<tr align="center"><td>L2</td><td><b>0.2653 uH</b></td><td>0.3801 uH</td><td>0.5845 uH</td></tr>
<tr align="center"><td>C1</td><td><b>212.21 pF</b></td><td>169.10 pF</td><td>102.97 pF</td></tr>
</tbody></table>
<br />
The butterworth type filter had values closest to what I had in my SMD 0805-size assortment I recently bought on Ebay. With two 270 nH inductors and a 220 pF capacitor this is wat I build. Two SMA edge connectors back to back with the components in between. This filter was added between the Si5351a board and my local oscillator SMA-connector on the DVB-t dongle.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-xmDdfnyQ9uE/VT-d5ubTmvI/AAAAAAAAACI/5ZM1fy0e-WM/s1600/filter.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="168" src="https://1.bp.blogspot.com/-xmDdfnyQ9uE/VT-d5ubTmvI/AAAAAAAAACI/5ZM1fy0e-WM/s1600/filter.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-PadfZlV8-nY/VT-d5zd5tzI/AAAAAAAAACM/LSzXSMKCn8s/s1600/filter_angle.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="175" src="https://1.bp.blogspot.com/-PadfZlV8-nY/VT-d5zd5tzI/AAAAAAAAACM/LSzXSMKCn8s/s1600/filter_angle.JPG" width="400" /></a></div>
<br />
And connect it.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-eemUut5S7mA/VUCLJFrlKDI/AAAAAAAAAC8/Vd2gzcErCrc/s1600/setup.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://3.bp.blogspot.com/-eemUut5S7mA/VUCLJFrlKDI/AAAAAAAAAC8/Vd2gzcErCrc/s1600/setup.JPG" width="240" /></a></div>
<br />
<br />
<br />
Hey the signal now starts to look way more like a sine wave. Still some distortion in there, but that was to be expected. Perhaps I'll make another with more poles in the future, but I'm just experimenting now, I don't have to go all the way yet.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-32ccn-j3Pi4/VT-eWCVbSZI/AAAAAAAAACg/B3YLYxUBRkY/s1600/8ma_filter.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://1.bp.blogspot.com/-32ccn-j3Pi4/VT-eWCVbSZI/AAAAAAAAACg/B3YLYxUBRkY/s1600/8ma_filter.png" width="320" /></a></div>
<br />
Now let's see if it made any difference in the spurious levels.<br />
<br />
<table 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/-J3TQFb5FiNg/VT-Zf2rO0JI/AAAAAAAAABs/bEQqD1QvCYo/s1600/8mA_no_filter.png" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="218" src="https://4.bp.blogspot.com/-J3TQFb5FiNg/VT-Zf2rO0JI/AAAAAAAAABs/bEQqD1QvCYo/s1600/8mA_no_filter.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Noise at 8mA drive level, without lowpass filter.<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; margin-left: 1em; text-align: right;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-BoiexRJ673g/VT-ZfWffmFI/AAAAAAAAABo/vgbL5qjVGKE/s1600/8mA_filter.png" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="218" src="https://2.bp.blogspot.com/-BoiexRJ673g/VT-ZfWffmFI/AAAAAAAAABo/vgbL5qjVGKE/s1600/8mA_filter.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Noise at 8mA drive level, filter added.</td></tr>
</tbody></table>
<br /></td></tr>
</tbody></table>
Yes it did. The spurious levels have dropped significantly. Time to lower the drive level all the way back to 2mA.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YLvlN9YTEf0/VT-ecKJecMI/AAAAAAAAACo/xUPthSP0C0g/s1600/2ma_filter.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://3.bp.blogspot.com/-YLvlN9YTEf0/VT-ecKJecMI/AAAAAAAAACo/xUPthSP0C0g/s1600/2ma_filter.png" width="320" /></a></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://4.bp.blogspot.com/-_XfPkKrw46U/VT-ZfS7GRuI/AAAAAAAAAB0/XMbC5wB49jk/s1600/2mA_filter.png" style="margin-left: auto; margin-right: auto;"><img border="0" height="218" src="https://4.bp.blogspot.com/-_XfPkKrw46U/VT-ZfS7GRuI/AAAAAAAAAB0/XMbC5wB49jk/s1600/2mA_filter.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Spurious at 2mA drive level with low pass filter.</td><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<br />
YES !!! This is the way to go. If you add an external local oscillator to your DVB-t dongle and you want no spurious, you have so make sure that you:<br />
<br />
<div style="text-align: left;">
A: Supply a clean sine wave to the R820t</div>
<div style="text-align: left;">
B: Supply the correct signal level to the R820t (to be determined)</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Now for all you folks that have soldered a 3.3Volt TCXO directly to your DVB-t dongle. Did any of you do any filtering or level correction? Please answer in the comments.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Milan.</div>
Anonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.com11tag:blogger.com,1999:blog-8490301272458780061.post-81048209150936906542015-04-24T05:25:00.000-07:002015-04-29T00:39:14.557-07:00NT7S's Si5351a VCO hooked up to the local oscillator of a DVB-T dongle.Hello and welcome to my second post on this fresh blog.<br />
<br />
A few days ago I've posted this picture on twitter (@mvdswaluw) and managed to get a few retweets and favorites. Clearly people like what I've done, so I would now like to describe it with a few more letters than twitter would allow.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-9RRZdXDl7hg/VTocypJtlmI/AAAAAAAAAAw/4istqqedLMs/s1600/Si5351a_DVBT.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-9RRZdXDl7hg/VTocypJtlmI/AAAAAAAAAAw/4istqqedLMs/s1600/Si5351a_DVBT.jpg" height="222" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
What you see here is @NT7S's Si5351a breakout board connected to the local oscillator of one of my DVB-T dongles. The DVB-T dongle with its 28.8 MHz crystal oscillator is normally not so frequency-stable because of the temperature drift of the frequency of the crystal. Inspired by <a href="http://www.simonsdialogs.com/?p=279" target="_blank">this</a> post by Simon Schrödle I've made the same setup (with a less expensive frequency generator). On the edge of the DVB-T dongle I've soldered an SMA edge connector by scraping a bit of the soldering mask for the ground connection.<br />
Between the center pin and the ground is an 82 Ohm 0805 SMD resistor. Then the signal goes trough a 10nF capacitor to the place where the signal goes into the R820T mixer. For good measure I've removed both loading capacitors of the original crystal. With a sketch from <a href="https://github.com/etherkit/Si5351Arduino" target="_blank">https://github.com/etherkit/Si5351Arduino</a> I generate the needed 28.8 MHz to the mixer. The mixer then feeds this signal to the RTL2832 chip that needs this signal to.<br />
<br />
The 28.8 MHz from the breakout board is generated with a 25 MHz TCXO, so there is no temperature drift with this setup anymore. Also the 28.8 MHz programmed on in the sketch is dead on frequency, even so that I can receive stations in the 23cm band without having to tune the ppm offset in GQRX. With 0 ppm offset I've received a local 23cm repeater exactly on-channel.<br />
<br />
The Si5351a can output different drive levels. With 8mA drive level you get about 3.3Volts on the R820T-chip, same as with a TCXO soldered directly to the DVB-T board as I've seen in other mods. By lowering the drive level to 2mA you get about 800mV, and the spurious signals that you see in your spectrum (every 28.8 MHz, e.g. 45x1296 MHz) will also be lower.<br />
<br />
Another nice thing you can do is de-tune the oscillator a bit. In the picture below I alternate the oscillator between 28.800 and 28.801 MHz. If you do this you can shift all your signals that you receive on your antenna, but most of the spurious coming from the DVB-T dongle will stay in place. This way you can tune around any spurious signals that you get from the RTL2832 chip or the USB-connection. In my example case I would have been able to de-tune the oscillator to bypass large the spurious signal on 432MHz. Luckily the RTL-2832 chip operates just fine when the oscillator is de-tuned a bit as Simon already mentioned. Can you see al the signals shifting?<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-sD54GMLHZ8I/VToyR1hKeDI/AAAAAAAAABA/Yly-ZtD8228/s1600/spurious.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-sD54GMLHZ8I/VToyR1hKeDI/AAAAAAAAABA/Yly-ZtD8228/s1600/spurious.png" height="372" width="640" /></a></div>
<br />
To do:<br />
- Make graphs of the spurious level with normal and shifted oscillator.<br />
- Make a proper low pass filter between oscillator and DVB-T dongle to see if I can reduce noise (the signal into the mixer is not a clean sine wave, as the Si5351a outputs a square wave). <br />
- Make a script to use or alter <a href="http://kmkeen.com/rtl-power/" target="_blank">rtl_power</a> to make frequency plots with spurious-bypass option.<br />
<br />
Any comments? Anonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.com4tag:blogger.com,1999:blog-8490301272458780061.post-5780699173282628412015-04-24T03:27:00.000-07:002015-04-24T03:27:20.684-07:00First blog message.Hello world,<br />
<br />
Let me introduce myself.<br />
<br />
My name is Milan van de Swaluw. At the moment I'm 37 years young, married and the father of two kids.<br />
I live in Mijdrecht, The Netherlands. At the moment I'm mainly interested in hamradio (callsing PE1RYY), electronics, domotica and model quadcopter and helicopter flying. The electronics and domotica interest is the main reason why I wanted to put up a blog, as I have too many ideas to turn into successful projects. It would be a waste to not share my ideas with the world and let them end in a pile of junk on my workbench.<br />
<br />
Hope you all enjoy my (probably not so frequent) write ups, and if you have any comments please share them. Sharing ideas is the reason why I start this.<br />
<br />
Milan. Anonymoushttp://www.blogger.com/profile/06285222970418041156noreply@blogger.com0