Go to advanced search

by SiriusHardware
Tue Apr 16, 2019 11:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Old Meets New
Replies: 30
Views: 5072

Re: Old Meets New

It's been brought to my attention that a modern MK14 replica could not accept keypresses at the default speed at which they were being sent to it by the uploader script ('send14'). This problem has been at least partly narrowed down to the particular 74LS365 chip which had been fitted instead of the...
by SiriusHardware
Thu Apr 11, 2019 7:57 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Old Meets New
Replies: 30
Views: 5072

Re: Old Meets New

That's already been done quite a long time ago for many of the more mainstream old computers like the Sinclair ZX81 and Spectrum, ie, a program which takes a saved file or memory snapshot file and converts it into the equivalent cassette audio output stream from a PC for playback into the retro syst...
by SiriusHardware
Wed Apr 10, 2019 10:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Old Meets New
Replies: 30
Views: 5072

Re: Old Meets New

Here's the diagram of the interface as it needs to be modified for JM replica PCBs. You'll see that not only have some of the upper column lines been moved further down the MK14 edge connector but also, the two uppermost connections to the Pi's GPIO pins 5 and 7 are swapped. This is because on the o...
by SiriusHardware
Wed Apr 10, 2019 10:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Old Meets New
Replies: 30
Views: 5072

Re: Old Meets New

Thank you! Unfortunately my work here is not yet done, as I have been informed that the Replica MK14 PCBs being offered by JM Precision in the UK have a different keypad edge connector pinout to that of my original issue II MK14. The type14 and send14 utilities in the zip file a couple of posts back...
by SiriusHardware
Tue Mar 26, 2019 11:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Old Meets New
Replies: 30
Views: 5072

Re: Old Meets New

Bumping a truly ancient thread of mine with an update. The Science of Cambridge MK14 programming interface shown in the video linked to in post #1 of this thread was intelligent, it could accept an Intel Hex file sent to it over an RS232 connection from any device capable of sending one including, a...
by SiriusHardware
Mon Dec 10, 2018 10:22 pm
Forum: Python
Topic: interesting delima using hex...
Replies: 4
Views: 690

Re: interesting delima using hex...

I think there's a degree of confusion between decimal and hex here. On Reaching 9 and advancing to the next click, the OP is adding six so that the next step of the (hex) counter is '10' rather than 0A. Maybe because the switches are described has having binary output, he's reading them into a hexad...
by SiriusHardware
Tue Nov 27, 2018 11:50 pm
Forum: Beginners
Topic: Add user's BIN directory to path so it is searched for commands
Replies: 4
Views: 918

Re: Add user's BIN directory to path so it is searched for commands

The last part (log out / log back in again, or reboot) was the part I had not done, but eventually realised I had to do.

For some reason, I originally thought it was enough just to come out of the terminal back to the desktop and then back into the terminal again. (Incorrect).
by SiriusHardware
Tue Nov 27, 2018 11:07 pm
Forum: General discussion
Topic: Make a project executable in raspberry pi
Replies: 12
Views: 3613

Re: Make a project executable in raspberry pi

Hi DirkS, thanks for the detailed explanation for the problem. Yes, Python itself was happy to run the code even though the source files were DOS-style text files. Glad to have it finally sorted out, as I was following perfectly good advice like that given earlier in the thread and getting absolutel...
by SiriusHardware
Tue Nov 27, 2018 8:15 pm
Forum: General discussion
Topic: Make a project executable in raspberry pi
Replies: 12
Views: 3613

Re: Make a project executable in raspberry pi

One point worth adding to this thread: I had been trying to make a .py file which I had originally written on a PC (In Idle) executable on a Pi in the way described. When ported to the Pi the same .py file ran fine if I put it in my home directory and ran it with python3 myfile.py but I wanted it to...
by SiriusHardware
Fri Nov 23, 2018 6:06 pm
Forum: Python
Topic: Check for keypad character without stopping?
Replies: 11
Views: 1514

Re: Check for keypad character without stopping?

Andyroo, just caught up with this, thank you so much for going above and beyond the call of duty with this. It will be useful not only to me but to anyone else who drives by looking for a similar solution. Sorry it cost you so much hair, though.
by SiriusHardware
Mon Nov 19, 2018 11:38 pm
Forum: Beginners
Topic: Add user's BIN directory to path so it is searched for commands
Replies: 4
Views: 918

Re: Add user's BIN directory to path so it is searched for commands

Belay that, I have just managed to get it working by doing a reboot. Merely coming out of the terminal and going back in wasn't enough, I take it what was actually required was a logout, then log back in in order to force this change.
by SiriusHardware
Mon Nov 19, 2018 11:26 pm
Forum: Beginners
Topic: Add user's BIN directory to path so it is searched for commands
Replies: 4
Views: 918

Add user's BIN directory to path so it is searched for commands

I have an executable Python script which works fine if I put it in my home/myusername directory and execute it with ./pythonfilename (I have made the file executable by my username, and it has the appropriate first line identifying it as an executable Python file). if I follow advice to create a /bi...
by SiriusHardware
Tue Nov 13, 2018 11:21 pm
Forum: Python
Topic: Check for keypad character without stopping?
Replies: 11
Views: 1514

Re: Check for keypad character without stopping?

Kind of you to even try, Andyroo.

The code in my previous but one post is working fine except for the fact that it does not shut off autorepeat. It may just be a case of delving further into the documentation for Blessed or Curses to see if there is anything else I can use there.
by SiriusHardware
Tue Nov 13, 2018 10:23 pm
Forum: Python
Topic: Check for keypad character without stopping?
Replies: 11
Views: 1514

Re: Check for keypad character without stopping?

Why do you need to use idle? Paddy, I think it's more a question of 'Why should I not be able to use Idle?' IDLE is the default editor / IDE for Python on the Pi, so it is not unreasonable to expect that any program written in Python can run in IDLE. However, that is obviously not the case, so I'm ...
by SiriusHardware
Tue Nov 13, 2018 10:18 pm
Forum: Python
Topic: Check for keypad character without stopping?
Replies: 11
Views: 1514

Re: Check for keypad character without stopping?

Hmm, just goes to show, if it isn't broken, don't fix it. My original BLESSED input code which was working well was: from blessed import Terminal t=Terminal() while (1): with t.cbreak(): inp=t.inkey() print inp if ord(inp)==27: # If ESC pressed, exit break When I 'simplified' it to the example in th...
by SiriusHardware
Tue Nov 13, 2018 9:35 pm
Forum: Python
Topic: Check for keypad character without stopping?
Replies: 11
Views: 1514

Re: Check for keypad character without stopping?

I think IDLE may have been the issue as most of the possible solutions seem to want to be run from / within a terminal window, so I have resorted to using a terminal editor (Nano) to edit my .py script and running the .py script from the terminal. I had to break my rule about using external resource...
by SiriusHardware
Mon Nov 12, 2018 7:57 pm
Forum: Python
Topic: Check for keypad character without stopping?
Replies: 11
Views: 1514

Re: Check for keypad character without stopping?

Honestly, I can't get any of that stuff to work, with the proviso that I am trying to run it through IDLE. If you have better luck, please post back and tell me how you did it.
by SiriusHardware
Fri Nov 09, 2018 5:12 pm
Forum: Python
Topic: keyboard emulator
Replies: 17
Views: 1281

Re: keyboard emulator

Is it not the case that the OP is trying to get the PI to seem to be a USB-connected keyboard and be recognised as such? If he can manage that, then anything / any software on the PC which expects to receive text input character by character from a connected keyboard will happily receive whatever ke...
by SiriusHardware
Thu Nov 08, 2018 9:19 pm
Forum: Python
Topic: Check for keypad character without stopping?
Replies: 11
Views: 1514

Check for keypad character without stopping?

There are quite a few old threads asking a similar question and a variety of usually very complex answers but I'm hoping that by now someone has come up with a new trick for this. What I need is the functionality / equivalent of the old BASIC INKEY$ keyword which would get the next character from th...
by SiriusHardware
Mon Aug 21, 2017 6:16 pm
Forum: Python
Topic: Will This Code Work To Move My Stepper Motor?
Replies: 30
Views: 9654

Re: Will This Code Work To Move My Stepper Motor?

Actually, the question of the motor wiring (in respect to the OP's setup) was covered in the last paragraph of an earlier post as follows: ...temporarily disconnect your motor and use your meter to measure the resistance of each of the two coils: Between black and green you should have a very low re...
by SiriusHardware
Tue May 23, 2017 10:25 pm
Forum: Beginners
Topic: Using a MIDI Baudrate on RPi 3
Replies: 10
Views: 3290

Re: Using a MIDI Baudrate on RPi 3

Although the circuit you illustrated does not, most MIDI outputs traditionally use an open-collector transistor or open collector logic gate as the output driver. That means that unless they are connected to V+ via a resistive load (which will usually be a resistor and optocoupler LED in series insi...
by SiriusHardware
Mon May 15, 2017 4:18 pm
Forum: Beginners
Topic: Using a MIDI Baudrate on RPi 3
Replies: 10
Views: 3290

Re: Using a MIDI Baudrate on RPi 3

I think the information you have applied worked up to Raspberry Pi 2, but there are complications when it comes to the Raspberry Pi 3. One is that (I think) the onboard serial port was reallocated to use by Bluetooth and has to be reallocated away from that purpose so that you can use it. On previou...
by SiriusHardware
Thu Apr 27, 2017 6:34 pm
Forum: Python
Topic: Declare / Read from 2D integer numeric array in Python?
Replies: 4
Views: 953

Re: Declare / Read from 2D integer numeric array in Python?

Paddyg, thanks for all the extra input and information which will make this thread a useful resource for anyone hunting for similar info in the future With regard to the C vs. Fortran format of my example reference, actually I typed that in a hurry and my example co-ordinates (returning '11' as the ...
by SiriusHardware
Tue Apr 25, 2017 10:53 am
Forum: Python
Topic: Declare / Read from 2D integer numeric array in Python?
Replies: 4
Views: 953

Re: Declare / Read from 2D integer numeric array in Python?

Ok, thanks for coming back to me on that - I'll give it a try.
by SiriusHardware
Mon Apr 24, 2017 10:34 pm
Forum: Python
Topic: Declare / Read from 2D integer numeric array in Python?
Replies: 4
Views: 953

Declare / Read from 2D integer numeric array in Python?

Pseudocode: MyArray (dimensions 5 * 5) = [1,2,3,4,5 6,7,8,9,10 11,12,13,14,15 16,17,18,19,20 21,22,23,24,25] Example fetch / display from array position x, y, where 0,0 = upper left element print MyArray [0,2] Result = 11 I knew years ago how to do this in BASIC and have a fair idea how to do it in ...

Go to advanced search