Intel Edison generic calculator shield photo journal
|
03-28-2015, 01:22 AM
(This post was last modified: 03-28-2015 06:10 AM by MarkHaysHarris777.)
Post: #36
|
|||
|
|||
RE: Intel Edison generic calculator shield photo journal
Greetings, well, this is mostly going to be a vision casting post, but also I will be sharing some code and some other things that I have learned this week regarding the Edison and hand-held calculation.
I have stated this a few times, but it does not hurt repeating-- I am not thinking about the hand-held calculator paradigm (stand-alone, not connected, non collaborative, buttons & display); that ship has sailed. I am thinking about a connected system (hardware & network) in which we have direct control of all things hardware (robotics and industrial control) as well as direct access with the network for complete analytics and collaboration... say over and over collaborative and connected. Some have thought the Edison is over-kill; here's a quote from one individual: (03-23-2015 08:29 PM)matthiaspaul Wrote: The Edison provides a compound processor with three cores, two Atoms running at 500 MHz and one Quark running at 100 MHz. One of them would be enough to accomplish the task. Also, we don't need 1 GB DRAM in a calculator. 32 MB would be more than enough. The Quark (dedicated MCU) is going to handle data collection (all types, but I'm thinking specifically scientific) and the Atom(s) are going to handle the analytics. The Quark keeps us connected to the hardware world, and the Atom(s) keep us connected (and collaborating) with the networked world. In such a system we have, as it were, the best of both worlds. The best part of this plan is its openness and simplicity. Intel has done all of the really hard work. What are we going to make? If anyone would like to try the Edison, feel free to contact me directly if you get stuck... the getting started docs are not as user friendly as the Arduino docs, and there are some assumptions about the user's knowledge of open systems like gnu/linux. I might be able to help get you going and save you some headaches. Well, its time to get serious about this/ my generic calculator framework is under way (keyboard build, voltage distribution for all three primary boards) and I've started with the real software on the Intel Edison (very excited about that): notes: The code responsible for starting the '/sketch/sketch.elf' file is the clloader service. Restarting the clloader service will start a 'sketch' or restart a crashed sketch. The following commands will start a new sketch uploaded via wifi to /shetch/ ln -sf name-of-new-sketch.cpp.elf sketch.elf systemctl restart clloader ... the first command sets a symbolic link from 'sketch.elf' to the new sketch just uploaded. 'sketch.elf' is hard coded in the clloader.h file (see sources)/ The second command restarts the clloader service which re-reads the new sketch.elf file through the symbolic link and then runs the new sketch. How cool is that? This means that the unit does not 'require' connection to the pc via usb micro connectors; in fact, no connectors are needed at all! Some codes: I thought I might share the codes that I have had running in my edison for a couple of days to check out the MCU and work a bit with the system on gnu/linux... this is a six channel 'LED flasher' with the catch that it doesn't just blink the LEDs... there is a binary LED counter, and a flash all-on all off routine. I'm using a segment LED, but you can use what ever LEDs you have. Be sure to have a level shifter in the middle (see my pics) because the edison is not going to be forgiving about voltage mis-match like the Arduino. Also, I have included an input button that switches between binary counting and 'flashing'. Unlike the Arduino, you will need to include your own pullup resistor. Code:
Good evening, and good weekend to all... Cheers, marcus Kind regards, marcus |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 18 Guest(s)