![]() |
Forum Index : Microcontroller and PC projects : (MC) Micromite based Gaming seat as featured in Silicon Chip 4DOF
Author | Message | ||||
chevbowtie Newbie ![]() Joined: 15/01/2022 Location: AustraliaPosts: 2 |
Is anyone familiar with this project featured in Silicon chip's 2019 September edtion - see link > http://beta.siliconchip.com.au/Issue/2019/September/Build+your+own+Gamer%E2%80%99s+Seat+with+Four+DoF The Micromite based control unit (pic32) appears to be working ok ( the touch screen menu boots, loads and works ok - we can slide the adjuster bars as expected to move the motors ). However we can't get the connection from the computer to the micromite to send a move command to the motors via serial. We have tried usb to serial, serial to serial, different baud rates but all I can see is constant hieroglyphs in the terminal such as you would usually see with the wrong baud rate. We have spent hours on this if anyone has some good idea please let us know. We believe all our electronic connections are correct, are we missing some simple element. We purchased the Pic preinstalled with the projects code from Silicon Chip. Should we try reloading? |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7938 |
Firstly, welcome to the forum. :) I'm not familiar with this project at all, but I'll try to get you started and maybe someone else can help further. Just a few questions to give us something to work with: What are you using as the terminal program on the PC? Have you tried a loopback test by connecting RX and TX together at the PIC end of the cable? Are you sending CRLF after a command? Have you tried swapping over RX and TX at the PIC end? Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
chevbowtie Newbie ![]() Joined: 15/01/2022 Location: AustraliaPosts: 2 |
Thank you Mick. Terminal programs I have tried. - putty - terraterm - MMEdit Yes we tried the loopback test and there was no hieroglyphs but i can't recall if the if input was sent back correctly - thank you we will retest this. I have sent CRLF by pressing enter after commands is there another way I should be doing this? We did swap RX and TX at the pic end but this didn't help. We have ordered the CP2102 USB to serial convertor incase the problem was with our old cable. |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
Try CR Ctrl-M LF Ctrl-J John |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5091 |
@chevbowtie, I could not read the whole article, since I do not have a membership of SC, but since you are discussing serial-serial and serial-USB following question. - when you try serial-serial, do you have a levelshifter (MAX232) between the micromite and the PC ? This chip converts the 0V/3.3V logic signals to +/- 7V RS232 signals, and is needed (also because it inverts the signal). Good luck with your project... Volhout P.S. If your circuit contains a crystal for the micromite (the MX170 doesn's have one, but MM+ and MMX have a crystal). When the crystal is the wrong frequency, all would seem to work, but at the wrong speed. You would notice this at the speed of the serial connection (being wrong). Edited 2022-02-11 20:28 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
The author of this post may know a bit about this. PM him. Bill Keep safe. Live long and prosper. |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 1003 |
The default baud rate for the console is 38400. You should have CON2 connected to CON3 to access the console. It probable runs automatically at startup, so wont be interested in talking to the Console without doing a CNTRL+C to break out of the program. (at 38400 baud). RUN command will get it going again. This is where you do GUI CALIBRATE etc. Have you managed this step. i.e. does touch screen and startup screen happen. OK read further. Are you at the step where you are trying the A@---Z command to move the motors. For this the Baudrate is 115200 and CON2 is connected to CON4 You are now connected to the gaming interface See this note from the program if you are connecting via R-232 you will need to change the program at the line '------------------------------------------------------------------------- Open "COM1:115200" As #1 'NOTE: if signal from RS-232 use "COM1:115200,inv" option the MMBasic software is here I have looked in the code and can not see where it would be sending anything back. It is only listening for the commands from the PC. You can open up the code (via console) and add. PRINT #1,"GOT THAT!" at the relevant spot to see if its getting your A@---Z command. This will prove the communication is good or not. regards Gerry PS. Are you connecting the GND pin as well as TX and RX when you connect to the PC. Edited 2022-02-11 22:10 by disco4now Latest F4 Latest H7 FotS |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |