Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : PicoMite USB betas
Page 3 of 5 | |||||
Author | Message | ||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6787 |
The USB system works like the CMM2, apparently, so it might be an idea to investigate that manual. Like I said, I can't test anything. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
I tried another picomite, com5 on teraterm and com5 with mmedit, worked. |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
Just loaded picmite lcd usb version and same problem with teraterm so used mmedit console Connected to COM10 at 115200 US USB Keyboard Connected on channel 1 > option list PicoMite MMBasic Version 5.08.00b0 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION SYSTEM SPI GP18,GP19,GP16 OPTION COLOURCODE ON OPTION KEYBOARD US OPTION CPUSPEED 252000 'KHz OPTION LCDPANEL ILI9341, LANDSCAPE,GP15,GP14,GP13 OPTION TOUCH GP12,GP11 GUI CALIBRATE 0, 3898, 3780, -894, -673 OPTION SDCARD GP22 |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
using option lcdpanel console for first time on ili9341 usb keyboard. interesting |
||||
karlelch Senior Member Joined: 30/10/2014 Location: GermanyPosts: 172 |
Hi Peter, thank you for the new firmware options - it amazes me what new features you come up with! I tried to connect a wireless PS4 controller and it seems to be recognized at first but then disappears (see below). This may be a stability issue with the underlying library and, hence, beyond your control but I wanted to report it. PicoMite MMBasic USB Edition 5.08.00b0 Copyright 2011-2024 Geoff Graham Copyright 2016-2024 Peter Mather > Generic Gamepad Connected on channel 1 > Generic Gamepad Disconnected > Generic Gamepad Connected on channel 1 > Generic Gamepad Disconnected > > for i=0 to 3:?mm.info(usb i):next 0 0 0 0 > Generic Gamepad Connected on channel 1 > Generic Gamepad Disconnected > Generic Gamepad Connected on channel 1 > Generic Gamepad Disconnected > for i=0 to 3:?mm.info(usb i):next 0 0 0 0 The connect/disconnect sequence comes (twice) whenever I plug in the dongle (disconnects within 1-2 seconds). The power to the USB port is stable, also the connection between dongle and PS4 controller stays up. The controller is a generic but higher quality on. With a PC I never had problems. I am interested in the wireless version because of the potential for robotic applications. Cheers Thomas P.S.: Default options Edited 2024-02-10 19:35 by karlelch |
||||
javavi Senior Member Joined: 01/10/2023 Location: UkrainePosts: 213 |
Hi Peter, The project's GitHub PicoMiteVGAUSB contains the file PicoMiteUSB.eprj How to open it? Is it possible to publish the electronic circuit diagram of the device in PDF format? |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3801 |
It's the file for the project on JLCPCB John |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9115 |
EasyEDA |
||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2350 |
hi Peter and javavi, i've spent half an hour on the easyeda.com website, and there seems to be no way to retrieve the schematic from the material at https://github.com/UKTailwind/PicoMiteVGAUSB using the online tools. menu items to 'import' are blanked out and seem to only be available if you purchase an "easyEDA Pro Edition" desktop client license. Peter, would you please post a .pdf of the schematic? cheers, rob :-) |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6787 |
The PDF of the schematic is on Github now. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
karlelch Senior Member Joined: 30/10/2014 Location: GermanyPosts: 172 |
Further testing (see my post about the wireless PS4 controller above ...) Now I have a wired controller. It is recognised and stable. However, using the example in the first post of this thread I get this: > option list PicoMite MMBasic Version 5.08.00b0 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION COLOURCODE ON OPTION KEYBOARD US OPTION CPUSPEED 252000 'KHz OPTION DISPLAY 64, 80 > Generic Gamepad Disconnected > Generic Gamepad Connected on channel 1 > run SNES controler found on channel 1 [33] If SNESchannel Then Device gamepad interrupt enable SNESchannel,genericint Error : Syntax > The only changes I made to the example was that I commented out everything related to displaying on a screen. Any ideas? Thanks Thomas |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9115 |
Dunno This is my current test program for the non-VGA version. You have loaded the latest beta off Geoff's site? You will only get the interrupts on the LCD screen if you set OPTION LCDPANEL CONSOLE Const ps4=128 Const ps3=129 Const snes=130 Const mouse=2 'MODE 2 FRAMEBUFFER layer FRAMEBUFFER create FRAMEBUFFER write f Sprite load "redmouse" CLS For i=1 To 4 If MM.Info(usb i)=mouse Then mousechannel=i Print "Mouse found on channel ",mousechannel EndIf If MM.Info(usb i)=ps3 Then PS3channel=i Print "PS3 controller found on channel ",PS3channel EndIf If MM.Info(usb i)=ps4 Then PS4channel=i Print "PS4 controller found on channel ",PS4channel EndIf If MM.Info(usb i)=130 Then SNESchannel=i Print "SNES controler found on channel ",SNESchannel EndIf Next FRAMEBUFFER write l Sprite show 1,0,0,1 If mousechannel Then Device mouse interrupt enable mousechannel,mouseint If PS4channel Then Device gamepad interrupt enable PS4channel,ps4int If PS3channel Then Device gamepad interrupt enable PS3channel,ps3int If SNESchannel Then Device gamepad interrupt enable SNESchannel,genericint If mousechannel Then Device mouse set mousechannel,0,0,0 Pause 1000 Do If mousechannel Then Sprite show 1,DEVICE(MOUSE mousechannel,x),DEVICE(mouse mousechannel,y),1 Pause 20 EndIf FRAMEBUFFER merge Loop Sub mouseint Static int L,R,M FRAMEBUFFER write f Print "Mouse Interrupt: "; If L<> DEVICE(mouse mousechannel,L) And L Then Print "L_UP" If R<> DEVICE(mouse mousechannel,R) And R Then Print "R_UP" If M<> DEVICE(mouse mousechannel,M) And M Then Print "M_UP" If L<> DEVICE(mouse mousechannel,L) And L=0 Then Print "L_DOWN" If R<> DEVICE(mouse mousechannel,R) And R=0 Then Print "R_DOWN" If M<> DEVICE(mouse mousechannel,M) And M=0 Then Print "M_DOWN" If DEVICE(MOUSE mousechannel,D) Then Print "double click" L=DEVICE(mouse mousechannel,L) R=DEVICE(mouse mousechannel,R) M=DEVICE(mouse mousechannel,M) FRAMEBUFFER write l End Sub Sub ps3int FRAMEBUFFER write f Print "PS3 interrupt: "; myint ps3channel FRAMEBUFFER write L End Sub Sub ps4int FRAMEBUFFER write f Print "PS4 interrupt: "; myint ps4channel FRAMEBUFFER write l FRAMEBUFFER merge End Sub Sub genericint FRAMEBUFFER write f Print "Generic interrupt: "; myint SNESchannel FRAMEBUFFER write l End Sub Sub myint(USBchan) Print DEVICE(gamepad USBchan, lx); Print DEVICE(gamepad USBchan, ly); Print DEVICE(gamepad USBchan, rx); Print DEVICE(gamepad USBchan, ry); Print DEVICE(gamepad USBchan, l); Print DEVICE(gamepad USBchan, r) Static integer l%=0 m%=1 a%=DEVICE(gamepad USBchan, b) t%=l% Xor a% If t% And m% Then If a% And m% Then : Print "R_ON":Else : Print "R_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "Start_ON":Else : Print "Start_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "Home_ON":Else : Print "Home_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "Select_ON":Else : Print "Select_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "L_ON":Else : Print "L_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "DOWN_ON":Else : Print "DOWN_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "RIGHT_ON":Else : Print "RIGHT_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "UP_ON":Else : Print "UP_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "LEFT_ON":Else : Print "LEFT_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "ZR_ON":Else : Print "ZR_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "X_ON":Else : Print "X_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "A_ON":Else : Print "A_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "Y_ON":Else : Print "Y_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "B_ON":Else : Print "B_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "ZL_ON":Else : Print "ZL_OFF":EndIf EndIf Inc m%,m% If t% And m% Then If a% And m% Then : Print "TPAD_ON":Else : Print "TPAD_OFF":EndIf EndIf l%=a% End Sub |
||||
karlelch Senior Member Joined: 30/10/2014 Location: GermanyPosts: 172 |
Thanks. I downloaded the newest firmware and made all the settings for an LCD panel and after commenting out the lines related to the mouse pointer sprite, it worked. That is, the syntax error was gone. It recognizes a "Generic gamepad". Still, it does not seem to pickup any events from the PS4 controller ... Not sure what's going on. I don't have an original controller, maybe my copy is somehow off. I don't have a PSx to test; with the PC, it seems to work. Well, if I get another wired controller, I'll try again. But for now I give it up as a wireless option would have been what I am interested in. Best Thomas |
||||
karlelch Senior Member Joined: 30/10/2014 Location: GermanyPosts: 172 |
P.S.: One strange observation (back to the wireless version): When I plug in the dongle with the controller itself powered down, everything seems to work: > Generic Gamepad Connected on channel 1 > for i=1 to 4:?mm.info(usb i):next 130 0 0 0 That stays like that until I power the controller. Then, immediately: > Generic Gamepad Disconnected This disconnect comes as soon as dongle and controller have finished negotiating ...> for i=1 to 4:?mm.info(usb i):next 0 0 0 0 |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
I just tried another usb to ttl converter, a cmh, teraterm says com11 but still can't get ">" with ctrl "c" Now when flashing code from mmedit it starts then says not responding?? I reused the old Silicon Labs CP210x USB to UART Bridge (COM10) instead and mmedit is fine but still teraterm no ">" so can't use. Any ideas why? usb is cool as you can't get ps2 mini wireless keyboards. |
||||
Hans Senior Member Joined: 18/10/2022 Location: CanadaPosts: 116 |
Hi All; I am working with the Waveshare RP2040-Plus which some of you might be familiar with. It has battery connector, USB-C console connector, reset and boot buttons, lastly it has 16 meg flash onboard. It is likely that I don't know what I am doing, however,when I install 5.9.0b2 any version that has USB or VGAUSB in the name, does not allow me to access the RP2040 via the console to setup options. The other versions work as expected As I have no other boards other than PICO-Ws to test with I don't know if the problem is confined to this Waveshare board or my understanding of how this new version works. Thanks for any comments you may have. Hans ... |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
usb lcd and vga seem to install ok but console needs setting speed 115200 and you get ">" if that's what you mean :) stan |
||||
Hans Senior Member Joined: 18/10/2022 Location: CanadaPosts: 116 |
115200 is set in putty to be my default speed. Same result no connection. Thanks Stan, Hans ... Edited 2024-02-25 10:07 by Hans |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
the Waveshare RP2040-Plus ..is it different? probably, dunno. I had probs with usb version with wrong speed teraterm. mmedit console works ok |
||||
Hans Senior Member Joined: 18/10/2022 Location: CanadaPosts: 116 |
I am starting to wonder if these versions will only run on the board that Peter was proposing? The following are screen shots of the PicoMite and PicoMiteVGA loaded on to the same Waveshare board I was trying to load the USB and VGAUSB versions. Hans ... |
||||
Page 3 of 5 |
Print this page |