Archivi tag: arduino

Tastiera e mouse USB per Amiga CDTV

Tra la mia collezione annovero un esemplare del Commodore Amiga CDTV che acquistai molti anni fa. Purtroppo a parte l’unità principale non ho tastiera né mouse originali, molto rari e soprattutto costosi oggigiorno. Così, a parte ripulirlo e accenderlo ogni tanto, lo tenevo sul tavolo a prendere la polvere.

Finchè un giorno trovo quasi per caso su Github questo progetto: SvOlli/USB2Amiga. Lo scopo dell’autore è quello di costruire un’interfaccia per collegare un mouse o una tastiera USB al CDTV. Il progetto fa uso di un Arduino Pro Micro e una shield USB host mini.

Schema e componenti utilizzati

Dal momento che non avevo gli stessi componenti da lui utilizzati, ho adattato il progetto utilizzando un’Arduino Nano e una shield USB host full a 5 volt con un kit tastiera + mouse wireless Logitech per avere entrambe le periferiche e un’unica interfaccia. Con somma soddisfazione ho scoperto che il firmware funziona perfettamente senza alcuna modifica. Attenzione: come riportato dallo stesso autore non è possibile utilizzare un hub USB. Il kit logitech utilizzato sfrutta un’unico dongle per entrambe le periferiche.

Schema dei collegamenti tra Arduino Nano e shield USB host.

Altro pregio dell’interfaccia è che non necessita di un alimentatore esterno perché si alimenta direttamente dal CDTV.

Riepilogando, per costruire l’interfaccia servono i seguenti componenti:

  • Arduino Nano
  • Shield USB host 2.0 full 5 volt
  • Connettore MiniDin 4 poli
  • Connettore MiniDin 5 poli
  • Logitech MK295 Kit Mouse e Tastiera Wireless o equivalente

Realizzazione e collegamenti

Per la realizzazione non ho fatto altro che seguire il mio schema e fare un po’ di saldature. I connettori sono quelli che hanno richiesto più tempo e pazienza, per il resto non ci sono particolari difficoltà se si ha un minimo di manualità e di esperienza nella saldatura a stagno (la mia è davvero basica).

L’interfaccia realizzata prende l’alimentazione direttamente dal CDTV e quindi non richiede alimentatori esterni. Ho aggiunto un ponticello per isolare il 5v del CDTV quando collego il Nano al PC con il cavetto USB per riprogrammarla o per fare debug.

Il firmware fa uso della libreria USB Host Shield Library 2.0. La shield USB che ho acquistato su Amazon ha richiesto un po’ di lavoro e di sbattimento per la totale mancanza di documentazione e supporto. La mia ha richiesto la saldatura di 3 piazzole per farla funzionare a 5 volt.

Le piazzole della shield USB da saldare per abilitare il funzionamento a 5 volt.

Una volta verificato il corretto funzionamento della shield attraverso gli esempi che accompagnano la libreria, ho caricato il firmware USB2Amiga, ho attaccato il dongle USB e i due connettori dietro al CDTV. E funziona!

Non ho avuto modo di provare altri kit tastiera+mouse però quello che già possedevo funziona egregiamente.

Teleport Gold modem reconversion

A few years ago I bought a Global Village Teleport Gold II fax/modem for my personal vintage collection. I had been always fascinated from old stuff used to communicate in the world wide web of that era but today they are almost useless except as an ornament accessory for my Macintosh Classic.

I don’t why but these days I started thinking when I was younger and I was moving my first steps into the Internet. No many years ago, really, but there weren’t broadband connections, wifi and social networks. To navigate I had to plug my serial modem to the telephone outlet, dialing to my internet provider and start the PPP session, wait for the complete loading of every web page keeping an eye to the minutes counter or my father would have scolded me! Now everything is changed, we are always connected, social networks are became the usual way to communicate each other. So that old serial modems are became useless, even for fax messages (who’s still use them?).

So I got this idea: why don’t try to reconvert my Teleport Gold modem to allow at least a wifi connection to my Macintosh? I had already known the amazing Bo Zimmerman’s Zimodem project buying an adapter for my Commodore C64 and I’d liked to get something similar for my Classic also.

The first goal was to keep the aesthetic of the original modem. In addition I wanted to use the Macintosh modem port. So I started to search informations about the RS-422 interface and how it could be connected to the UART of a ESP32 MCU. I discovered that the RS-422 is very similar to the more standard RS-232 and that I could use a MAX3232 IC as signal converter.

Top view of the modem board I built. I’ve used and ESP32 MCU controller. Near the DB9 connector you can see the TTL<-> RS-232 converter. I use the same IC for both DB9 (RS-232) and Mini DIN 8 (RS-422) connectors.

At this point I built the circuitry needed for my project. I pulled up from the original logic board the serial cable, switch and power plug . I replaced the telephone plugs with a DB9 connector in case I would use this modem with my Amiga. Since Zimodem firmware supports an SD card on ESP32, I put it one. I added also an internal speaker in case I want to simulate the old dial-up sound (do you remember that Pshhhkkkkk krrrrka kingkakingkakingtsh chchchchchchchcch dingdingding ?) or if I’d wanted to add some extra features.

Then I got a copy of the Zimodem firmware and I added some changes to drive the LEDs on the front panel of the Teleport Gold modem: one green led for the power on, another green one when the wifi connection is active and a yellow led for the serial activity.

After flashed an ESP32 and made the final checks (I didn’t want to blow my Classic, of course) I started the Terminal program – no, it’s not the Mac OS X one 😛 – and input some AT commands.

Here following some picture of my work. Any feedback is appreciated.

LED Library

Comincio a prenderci gusto… ecco un’altra libreria per comandare un led su Arduino. La mia versione permette di far lampeggiare un led oppure di accenderlo e spegnerlo lentamente con un effetto respiro in modalità non bloccante.

Trovate sorgenti ed esempi sul mio GitHub. Commenti e contributi sono ben accetti!