Mi sono messo a leggiucchiare il libro Robotica: Modellistica, Pianificazione e Controllo (Bruno Siciliano,Lorenzo Sciavicco,Luigi Villani, Giuseppe Oriolo McGraw-Hill Libri Italia srl) ...leggiucchiare perche' e' un libro di teoria di robot pieno di matematica
Partendo dalle misure e dalla forma di un robot reale (braccio robotico antropomorfo tinkerkit a 5 gradi di liberta' piu' presa) con l'idea di tracciare una traiettoria circolare sul pavimento
In questo tipo si esercizio si definisce l'obbiettivo e si lascia all'algoritmo il calcolo della posa del robot
ani = animation.FuncAnimation(fig, update, frames=TOTAL_FRAMES, interval=40, blit=False, repeat=True)
plt.show()
il braccio segue la traiettoria circolare ma muovendosi in uno spazio reale sbatterebbe il gomito sul pavimento...Mettiamo la condizione che i giunti debbano avere coordinata Z sempre positiva
Nonostante istruzioni in alcuni casi lacunose sono riuscito a farlo funzionare. (non ho capito ancora a cosa serve il pulsante rosso).L'alimentazione e' 9V GND sull'esterno del jack). Il potenziometro sotto al di display regola la luminosita' di quest'ultimo
Non so quanto possa essere utile per il morse ma per imparare a saldare e correggere gli errori va piu' che bene visto anche il costo
A causa di questi errori in fase di boot legati al Bios ho provato ad aggiornare
[ 0.917988] thermal LNXTHERM:00: registered as thermal_zone0 [ 0.917992] ACPI: thermal: Thermal Zone [THM] (25 C) [ 0.918117] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20250404/psargs-332) [ 0.918258] ACPI Error: Aborting method \_TZ.TZ00._TMP due to previous error (AE_NOT_FOUND) (20250404/psparse-529) [ 0.918511] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20250404/psargs-332) [ 0.918648] ACPI Error: Aborting method \_TZ.TZ00._TMP due to previous error (AE_NOT_FOUND) (20250404/psparse-529) [ 0.918832] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20250404/psargs-332) [ 0.918970] ACPI Error: Aborting method \_TZ.TZ01._TMP due to previous error (AE_NOT_FOUND) (20250404/psparse-529) [ 0.919151] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20250404/psargs-332) [ 0.919288] ACPI Error: Aborting method \_TZ.TZ01._TMP due to previous error (AE_NOT_FOUND) (20250404/psparse-529)
Su Linux per i computer Dell ci sono due strade
Se si usa UEFI si puo' seguire questa strada che scarica in automatico il necessario e da l'update
sudo apt install fwupd
sudo fwupdmgr refresh
fwupdmgr get-updates
sudo fwupdmgr update
Se si usa il Legacy Bios ci sono due strade: la prima e' scaricare il file .exe dell'aggiornamento del BIOS da Dell, metterlo su una chiavetta, fare il boot, premere F12 e selezionare Bios Flash Update
Seguendo questo post ho provato la chiavetta BH8DZE (si vedra' che i due sono parenti prossimi)
Nulla di nuovo ...la cinesata si presenta come un mouse USB HID
La cosa curiosa e' che l'identificativo 413d:2107 che sembra poter essere ricondotto a WinKeyer (oltre che ad un sensore di temperatura)
sembra che il processore sia della famiglia degli ATTiny (sicuramente non ATTiny8 perche' il numero di piedini e' 16)
luca@Dell:~$ lsusb Bus 001 Device 013: ID 413d:2107
Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0x413d product 0x2107 version 0x110 Input device name: "HID 413d:2107" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 272 (BTN_LEFT) Event code 273 (BTN_RIGHT) Event code 274 (BTN_MIDDLE) Event type 2 (EV_REL) Event code 0 (REL_X) Event code 1 (REL_Y) Event code 8 (REL_WHEEL) Event code 11 (REL_WHEEL_HI_RES) Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Properties: Testing ... (interrupt to exit)
Testing ... (interrupt to exit) Event: time 1763723445.111938, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001 Event: time 1763723445.111938, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1 Event: time 1763723445.111938, -------------- SYN_REPORT ------------ Event: time 1763723445.231861, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001 Event: time 1763723445.231861, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0 Event: time 1763723445.231861, -------------- SYN_REPORT ------------ Event: time 1763723446.184010, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001 Event: time 1763723446.184010, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1 Event: time 1763723446.184010, -------------- SYN_REPORT ------------ Event: time 1763723446.319872, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001 Event: time 1763723446.319872, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0 Event: time 1763723446.319872, -------------- SYN_REPORT ------------