Post

Use wiringPi with Plug

I need to call wiringPi functions from Plug source code. So I wasted some time editing Plug's CMakefile to be able to compile Plug source together wiringPi calls. I also found a bug in the cmake version I was using. This bug didn't allow to compile multiple source files stored in different folders. I had Plug code in its folder and wiringPi files somewhere in file system. As workaround I did edit CMakefile and set version as 3.13.0.

Control Raspberry GPIO pins

A short recap, I need:   - 8 GPIO pins to select presets - 2 GPIO pins to select bank value - 1 GPIO pins to control a LED (for example, Raspberry OS and Plug up and running, or Raspberry shutting down).   Raspberry pin -  BCM pin   01 - 3v3 02 - 5v 03 - gpio02 04 - 5v 05 - gpio03 06 - gnd 07 - gpio04 08 - gpio14 09 - gnd 10 - gpio15 11 - gpio17 12 - gpio18 13 - gpio27 14 - gnd 15 - gpio22 16 - gpio23 17 - 3v3 18 - gpio24 19 - gpio10 20 - gnd 21 - gpio09 22 - gpio25 23 - gpio11 24 - gpio08 25 - gnd 26 - gpio07 27 - ID_SD 28 - ID_SC 29 - gpio05 30 - gnd 31 - gpio06 32 - gpio...

Compile Plug on Raspberry pios 11

Finding all the packages needed for the compilation on my raspberry pios 11 took less time than ubuntu. To compile Plug from source code I needed to install the following packages: apt-get install cmake libusb-1.0-0-dev googletest qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libgmock-dev  apt suggests to install also cmake-doc ninka-build  I got the source code from GitHub: wget  https://github.com/offa/plug/ archive/refs/heads/master.zip Then I unzipped the code and cd to the source folder; from source folder I run the following commands: mkdir build && cd build  cmake ..  make  make unittest  make install Now I can edit and modify the original source code. Please note: the compilation process required more time on Raspberry than on my i5 laptop

Compile Plug on Ubuntu 21.10

I'm not a developer and the last time I compiled a C source code was in the 90's on Commodore Amiga, using GCC.  Finding all the packages needed for the compilation on my Ubuntu 21.10 laptop took a long time and I had to understand how CMakefile works, but in the end I succeded! To compile Plug from source code I needed to install some packages: apt-get install unzip cmake libusb-1.0-0-dev build-essential pkg-config googletest qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libgmock-dev I got the source code from GitHub: wget  https://github.com/offa/plug/ archive/refs/heads/master.zip Then I unzipped the code and cd to the source folder; from source folder I run the following commands: mkdir build && cd build cmake .. make make unittest make install When the compilation completed, I run the executable: plug

Plug software for Fender Mustang

Immagine
Fender Mustang amplifiers are digital guitar amplifiers. Customers can connect the amplifier to PC via USB port and control settings using the Fender FUSE application for Windows. A couple of months ago, I bought a used Mustang v1 amplifier on ebay for only 60€. On March 2020, Fender dropped official support for FUSE (and I also prefer to use Linux) so I did a little internet search and found an alternative open source software, "Plug". https://github.com/offa/plug I tried Plug on Ubuntu laptop and It worked. But I didn't want to take a laptop with me to play guitar, so I decided to  try Plug on a small Raspberry Pi Zero 2 W and it worked fine. My Mustang amplifier can store 24 presets (8 presets, 3 banks), but the Fender footswitch allows to select only 2 presets. It would be nice to select all of them using a footswitch instead of a PC keyboard...

Restoring Amiga 3000T - Part 7 - Flash Floppy

Immagine
This is un update about floppy disk emulation. The H.M. firmware for the gotek floppy is no longer maintained, but Keir Fraser developed a new firmware, FlashFloppy : https://github.com/keirf/FlashFloppy FlashFloppy pros: is open source is compatible with a wide range of image formats supports external speaker, rotary encoder and LCD/OLED Displays Instead of using an usb-to-serial adapter to flash the firmware I tried an USB-to-USB connection. Gotek USB port can be used to program the microcontroller. You have to set the Gotek in "program mode", connecting the pins as in picture: Using linux to flash the gotek, you need a tool named dfu-util ; on debian like OS run the command: sudo apt-get install dfu-util Next step is connect the USB-to-USB cable from PC to Gotek floppy and execute the following commands: sudo dfu-util -a 0 -s :unprotect:force -D yourflashfloppyfw.dfu sudo dfu-util -a 0 -D yourflashfloppyfw.dfu yourflashfloppyfw.dfu is th...

Debian Linux on Dockstar - Part 1 - Introduction

Immagine
You can find a lot of articles on web about Linux and Dockstar. This is my experience in Dockstar modding. Warning!  Modify Dockstar will void warranty and can damage the device. I started this project a couple of years ago, working on my spare time; now I have the following working services: Webmin Apache web server Amule Transmission Pyload Minidlna Samba xmarks repository Linux boots as live distro, so any power outage cannot corrupt the system partition. Data partition is mounted in read and write.