Raspberry Pi, DigiThin and Si570 Configuration Procedure
Posted: Wed Nov 04, 2015 3:09 pm
Here is the latest (4 Nov 15) install procedure for DigiThin with an Si570 LO on a Raspberry Pi:
1. Download RpiDATV1.2.1.img.zip from http://f5oeo.fr/RpiDATV1.2.1.img.zip and unzip it on a PC. You should get a single file RpiDATV1.2.1.img.
2. Use win32diskimager from http://sourceforge.net/projects/win32diskimager/ to put the image on your SD Card. Be careful not to wipe your hard drive instead!
3. Download "DigiThin Si570 Instructions v1-01 Software v1-00 Schematic A1-v2.zip from http://www.batc.org.uk/forum/viewtopic.php?f=97&t=4375 and unzip the files into a folder (si570) on a USB stick.
4. Insert the SD Card in your RPi, which will need to be connected to an HDMI monitor and a keyboard. Do not connect a mouse, but put the USB stick in the spare USB port. Connect a wired internet connection (with dhcp enabled) to the network port.
5. Power on the RPi. After boot-up F5OEO's software should load. Highlight "English" and press enter. The RPi will reboot (and come up with a French Menu!).
6. To configure F5OEO's encoding software, press enter at the first screen to get the main menu, and then go through each menu item (using the space bar to make the selections) setting the source as the RPi Camera (H264), the symbol rate as 333, the FEC as 7/8, the output as DigiThin and your own callsign. After entering the last selection, you should see the led on the DigiThin board flashing with a 1:1 on-off ratio, indicating that it is functioning correctly.
7. If you want to start up an Si570 LO at boot time, do the following:
- Press escape and then enter to get to the command line.
- Change directory to the directory on your USB stick where the Si570 files are:
"cd /media/usb/si570" Use "ls -l" to look and check that you are in the right place.
- Copy the files into your home directory:
"cp * /home/pi/"
- Check that they are there:
"cd /home/pi"
"ls -l"
- Rename the si570v100 file to si570:
"mv si570v100 si570"
- Make the si570 file executable:
"chmod +x si570"
- Load the i2c functionality to the pi:
"sudo apt-get install python-smbus"
"sudo apt-get install i2c-tools"
"sudo raspi-config", then go to advanced options, i2c, and enable i2c, then get it to load at boot. Accept the option to reboot.
- Modify some config files as superuser using the nano text editor:
"sudo nano /etc/modules"
Use the arrow keys to go down and add the lines:
i2c-bcm2708
i2c-dev
Save and Exit by pressing Ctrl-X, Y, Enter (Note: code corrected on 30 Nov 2016)
"sudo nano /etc/modprobe.d/raspi-blacklist.conf"
add the line:
blacklist spi-bcm2708
Save and Exit by pressing Ctrl-X, Y, Enter
"sudo nano /boot/config.txt"
add the lines:
dtparam=i2c1=on
dtparam=i2c_arm=on
Save and Exit by pressing Ctrl-X, Y, Enter
- Reboot to let the changes take effect:
"sudo reboot"
- After the reboot, exit from F5OEO's software by pressing escape 3 times to get to the command line. If you have an si570 connected, you can check that it is seen by the RPi:
"sudo i2cdetect -y 1"
This should show a device connected to address 55.
- You can read the comprehensive help on the si570 utility by typing:
"sudo ./si570 -h", and run the utility by typing "sudo ./si570 -f 146.5"
- You can set the frequency automatically on boot by:
"sudo nano /etc/rc.local"
and adding the following line just before the exit 0 statement:
sudo /home/pi/si570 -f 146.5
Save and Exit by pressing Ctrl-X, Y, Enter
- After reboot, DigiThin should start with the VCO set to your desired frequency.
8. You can change the Video PID to the standard value of 256 by editing the rpidatvconfig.txt file:
Press escape 3 times to get to the command line
"cd RpiDATV"
"sudo nano rpidatvconfig.txt"
and edit the pidvideo line to read:
pidvideo=256
Save and Exit by pressing Ctrl-X, Y, Enter
sudo reboot
9. Notes:
- You can also get to the Command line while RpiDATV is running by pressing ctrl-alt-F2. Use ctrl-alt-F1 to get back to the RpiDATV menu.
- Boot up without the HDMI display connected for normal operation of the RpiDATV software. Having the display connected can cause timing problems. The network connection is not required for normal operation either.
- Some users have reported SD Card corruptions when simply disconnecting the power to turn off the RPi/Digithin combination. Even without a display connected, you can neatly shutdown your RPi with RpiDATV running from the keyboard by pressing escape 3 times, sudo halt, enter.
- The older Maplin 5V 2.1A plug-in power supplies will not run the RPi, Camera DigiThin and Si570 - they droop to about 4V. Use a better power supply.
- Neither ftp nor Remote Desktop are running on this version of Raspbian. SSH is running, so that you can log-in over the network (if connected) from a Windows PC (use the application Putty http://www.chiark.greenend.org.uk/~sgta ... nload.html). Type ifconfig at the command line to display your RPi's IP address. Login with the username "pi" and the password "tv".
Thanks to Evariste F5OEO and Brian G4EWJ for their software and hardware designs, and to especially to Brian for his help with these instructions.
Please pass any suggested amendments to me and I will edit this post.
Dave
G8GKQ
Additional notes added at 2245 on 4 Nov.
1. Download RpiDATV1.2.1.img.zip from http://f5oeo.fr/RpiDATV1.2.1.img.zip and unzip it on a PC. You should get a single file RpiDATV1.2.1.img.
2. Use win32diskimager from http://sourceforge.net/projects/win32diskimager/ to put the image on your SD Card. Be careful not to wipe your hard drive instead!
3. Download "DigiThin Si570 Instructions v1-01 Software v1-00 Schematic A1-v2.zip from http://www.batc.org.uk/forum/viewtopic.php?f=97&t=4375 and unzip the files into a folder (si570) on a USB stick.
4. Insert the SD Card in your RPi, which will need to be connected to an HDMI monitor and a keyboard. Do not connect a mouse, but put the USB stick in the spare USB port. Connect a wired internet connection (with dhcp enabled) to the network port.
5. Power on the RPi. After boot-up F5OEO's software should load. Highlight "English" and press enter. The RPi will reboot (and come up with a French Menu!).
6. To configure F5OEO's encoding software, press enter at the first screen to get the main menu, and then go through each menu item (using the space bar to make the selections) setting the source as the RPi Camera (H264), the symbol rate as 333, the FEC as 7/8, the output as DigiThin and your own callsign. After entering the last selection, you should see the led on the DigiThin board flashing with a 1:1 on-off ratio, indicating that it is functioning correctly.
7. If you want to start up an Si570 LO at boot time, do the following:
- Press escape and then enter to get to the command line.
- Change directory to the directory on your USB stick where the Si570 files are:
"cd /media/usb/si570" Use "ls -l" to look and check that you are in the right place.
- Copy the files into your home directory:
"cp * /home/pi/"
- Check that they are there:
"cd /home/pi"
"ls -l"
- Rename the si570v100 file to si570:
"mv si570v100 si570"
- Make the si570 file executable:
"chmod +x si570"
- Load the i2c functionality to the pi:
"sudo apt-get install python-smbus"
"sudo apt-get install i2c-tools"
"sudo raspi-config", then go to advanced options, i2c, and enable i2c, then get it to load at boot. Accept the option to reboot.
- Modify some config files as superuser using the nano text editor:
"sudo nano /etc/modules"
Use the arrow keys to go down and add the lines:
i2c-bcm2708
i2c-dev
Save and Exit by pressing Ctrl-X, Y, Enter (Note: code corrected on 30 Nov 2016)
"sudo nano /etc/modprobe.d/raspi-blacklist.conf"
add the line:
blacklist spi-bcm2708
Save and Exit by pressing Ctrl-X, Y, Enter
"sudo nano /boot/config.txt"
add the lines:
dtparam=i2c1=on
dtparam=i2c_arm=on
Save and Exit by pressing Ctrl-X, Y, Enter
- Reboot to let the changes take effect:
"sudo reboot"
- After the reboot, exit from F5OEO's software by pressing escape 3 times to get to the command line. If you have an si570 connected, you can check that it is seen by the RPi:
"sudo i2cdetect -y 1"
This should show a device connected to address 55.
- You can read the comprehensive help on the si570 utility by typing:
"sudo ./si570 -h", and run the utility by typing "sudo ./si570 -f 146.5"
- You can set the frequency automatically on boot by:
"sudo nano /etc/rc.local"
and adding the following line just before the exit 0 statement:
sudo /home/pi/si570 -f 146.5
Save and Exit by pressing Ctrl-X, Y, Enter
- After reboot, DigiThin should start with the VCO set to your desired frequency.
8. You can change the Video PID to the standard value of 256 by editing the rpidatvconfig.txt file:
Press escape 3 times to get to the command line
"cd RpiDATV"
"sudo nano rpidatvconfig.txt"
and edit the pidvideo line to read:
pidvideo=256
Save and Exit by pressing Ctrl-X, Y, Enter
sudo reboot
9. Notes:
- You can also get to the Command line while RpiDATV is running by pressing ctrl-alt-F2. Use ctrl-alt-F1 to get back to the RpiDATV menu.
- Boot up without the HDMI display connected for normal operation of the RpiDATV software. Having the display connected can cause timing problems. The network connection is not required for normal operation either.
- Some users have reported SD Card corruptions when simply disconnecting the power to turn off the RPi/Digithin combination. Even without a display connected, you can neatly shutdown your RPi with RpiDATV running from the keyboard by pressing escape 3 times, sudo halt, enter.
- The older Maplin 5V 2.1A plug-in power supplies will not run the RPi, Camera DigiThin and Si570 - they droop to about 4V. Use a better power supply.
- Neither ftp nor Remote Desktop are running on this version of Raspbian. SSH is running, so that you can log-in over the network (if connected) from a Windows PC (use the application Putty http://www.chiark.greenend.org.uk/~sgta ... nload.html). Type ifconfig at the command line to display your RPi's IP address. Login with the username "pi" and the password "tv".
Thanks to Evariste F5OEO and Brian G4EWJ for their software and hardware designs, and to especially to Brian for his help with these instructions.
Please pass any suggested amendments to me and I will edit this post.
Dave
G8GKQ
Additional notes added at 2245 on 4 Nov.