The Craftmans Shop > New from Old
The Sequel - Oh Blimey I bought a CNC Lathe (Beaver TC 20)
awemawson:
Well well, a little progress :thumbup:
Arduino Mega 2560 R3 has arrived - it did a few days ago but farming things took priority. I did just plug it in and download the IDE (Integrate Development Environment) and write a little diddy LED flasher but it failed to upload and no time to sort it out.
But today I had time to have a 'look see' : Simple really, tell the compiler that you have a Arduino 2560 R3 and not the Uno that it was set up for and it WILL upload :ddb:
So a bit of playing about changing flash rates etc - nothing at all complicated, then I went off to GitHub and cloned the already written code for the 62256 SRAM chip to see how the author has approached the problem. The code compiles and runs but of course isn't connected to anything yet, but at least it's basically working, and will give me good ideas to structure my own version.
Still awaiting the breadboard and anyway being a Friday another two cottage change overs to perform and tomorrow a field to flail so hopefully Sunday or Monday I'll have a crack at it.
PDF version of the cloned .ino file attached - now I need to discover how to open .md read me files and I'll be well away :thumbup:
russ57:
Pretty sure..md is just text.
Probably rename would be easiest..
-update = md is markdown so it could have formatting tags
-russ
awemawson:
Yes I whipped the .md off the file name and opened it with Notepad. As you say it's just text but un-formatted so I saved it with word wrap on to make it marginally more readable.
I presume that there's a way of opening .md files within the IDE but I've not found it yet.
As he doesn't vary his data it's amusing to watch it 'pass' my open wires as good, but never the less it's a very useful introduction for me.
I'm quite looking forward to get it driving the RAM card - a load of jumper leads arrived this morning, and supposedly the break out bread board is 'out for delivery' but no sign yet !
AdeV:
--- Quote from: awemawson on September 03, 2021, 08:36:53 AM ---Yes I whipped the .md off the file name and opened it with Notepad. As you say it's just text but un-formatted so I saved it with word wrap on to make it marginally more readable.
I presume that there's a way of opening .md files within the IDE but I've not found it yet.
--- End quote ---
The Arduino IDE is pretty rubbish by modern standards, although having all the tools to make it talk to the Arduino makes it handy. Your best bet for reading .md files is actually to read them on-line (the default README.md is shown automatically by github, underneath the list of files. Any .md file you click on in the github list will also render nicely on the browser.
Failing that, download & install Visual Studio Code (free from MS). It will run on anything (Windows/Linux PC or Mac), and will also render .md file (right-click the file, open preview).
--- Quote from: awemawson on September 03, 2021, 08:36:53 AM ---As he doesn't vary his data it's amusing to watch it 'pass' my open wires as good, but never the less it's a very useful introduction for me.
I'm quite looking forward to get it driving the RAM card - a load of jumper leads arrived this morning, and supposedly the break out bread board is 'out for delivery' but no sign yet !
--- End quote ---
Welcome to the wonderful world of Arduino! :borg: The "usual" way of increasing the number of useful data pins is to use one (or more) 74595 chips (serial-to-parallel) or 74165 (parallel-to-serial) shift registers, which at the expense of a bit of speed, gives you a effectively as many digital I/Os as you could ever need. :headbang:
awemawson:
Ade, amusingly the serial to parallel approach was what I used to make a 48 bit wide (iirc) pneumatic interface to drive what had been a paper tape input to my Moog Hydropoint 1000 which was my first NC machine back in the 1980’s.
All driven off a single bit on a PC parallel printer port. (A second bit acted as clock) Amazingly it actually worked quite well.
(The Hydropoint blew air though several stripes of holes at once in the paper tape and the air drove tiny actuators moving parallel plates with holes in that the hydraulics servo system used as it’s set point. That was quite a learning exercise!)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version