element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sci Fi Your Pi
  • Challenges & Projects
  • Design Challenges
  • Sci Fi Your Pi
  • More
  • Cancel
Sci Fi Your Pi
Blog Introduction to The I Ching Hexagram Project
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: taodude
  • Date Created: 21 Apr 2015 8:31 PM Date Created
  • Views 1364 views
  • Likes 5 likes
  • Comments 4 comments
  • i_ching_hexagrams
Related
Recommended

Introduction to The I Ching Hexagram Project

taodude
taodude
21 Apr 2015

Hi, Welcome to my Blog on the creation of I Ching Hexagrams using a Raspberry Pi.

 

The challengers have only just been announced, so i don't have the Design Kit yet.  Farnell have sent me an e-mail though telling me that it will be delivered some time over the next couple of weeks.  This introduction is a collection of snippets to give you an idea of what to expect in the run-up to the August deadline for project submission.  I do have a day job as an engineer, but i have not been a professional designer since the days when microprocessors only had eight bits (or 16 if you had loads of dosh to splash) and Real Programmers programmed in FORTRAN, or if you were really good, native Assembly Language (was that only 30 years ago?).

 

The idea for the project is based on a computer that features in the Illuminatus Trilogy by Robert Shea and Robert Anton Wilson (1).  The computer lives on a yellow submarine owned by eccentric Norwegian multi-millionaire Hagbard Celine (it was written a long time ago when a million was actually a serious amount of money that would buy you the best part of a hundred houses, rather than one or two if you live in London now)

 

If you want to find out the computer's real name, you will need to read the books: as this is a family show, and the Competition is based on Raspberry Pi hardware, I have renamed the computer Multi-core Executable Software Solution Using Pi (MESS-UP).

 

Once i have started the coding, i will make bits available for download via GitHub (link to be announced).  Some code will be a direct port from the core program that i created in the late 1990s to run on my Psion Organiser LZ64 (which incidentally still works), but there will need to be a lot of new code to drive the hardware that i will be using from the Design Kit.

 

First a bit of introduction (with an apology to scholars of Chinese wisdom/philosophy for cutting a few corners in explanation - OK a lot of corners):

 

If you want to learn more about the I Ching itself, please read the Richard Wilhelm/Cary F Baynes translation (2) for a more traditional explanation.  You could also read 'The Authentic I Ching' by Henry Wei (3), or the I Ching Workbook by Robert Lee Wing(4).

 

The I Ching, or 'Book of Changes'  is an ancient Chinese oracle that consists of casting Hexagrams from a process of dividing a set of yarrow stalks or tossing coins and interpreting the results from a text.

 

Reinterpreting the fundamental nature of the I Ching for 21st Century science from reading Illuminatus and the Tao of Physics by Fritjof Capra (5), each Hexagram consists of six lines, each of which are in one of two quantum states, even or Yin and odd, or Yang.  Given that there are six lines and two quantum states, 64 hexagrams are possible.

 

Each quantum state has two sub-states: one is metastable and the other is unstable and transforms into the metastable version of its opposite, thus completing the cycle of Life.  This means that each hexagram cast will either remain fixed or mutate into one of the other 63 hexagrams.

 

Each hexagram is made up of two trigrams: the eight possible trigrams are shown in the graphic below, that represents the T'ai Chi or 'Supreme Ultimate'.  Hexagrams and their upper and lower trigrams are built and interpreted from the bottom upwards, and the significance of each line varies between hexagram/trigram.

 

image

 

Back to the project now:

 

MESS-UP will cast Hexagrams and give an interpretation of the result, with both a visual display on the PiFace card and an audio description in the spirit of Hagbard Celine's original computer, which did not have a display and was voice operated.  I might go for a Stephen Hawking voice for the project, but as that is so popular, i might go for something different.

 

Hexagrams are created randomly, so the program calls up a number of random numbers, but as the hexagram cast is a function of the state of the universe at the time it is cast, the random number generator will be seeded from a combination of the Real-Time Clock value, the GPS position of the Pi and the attitude of the Pi determined by the accelerometer when the cast command is issued.

 

If it turns up in time, i might work in the PiJuice solar power unit that i have backed on KickStarter so that the Hexagram Generator is truly portable.

 

That's it for now.  Introduction Part 2 will follow next week, unless the Kit arrives earlier than expected, in which case there will be some progress to report.

 

References:

1.     The Robert Anton Wilson Website - The Illuminatus! Trilogy

2.     I Ching: Richard Wilhelm Translation ISBN 0-7100-9527-9

3.     The Authentic I Ching' by Henry Wei ISBN 0-7054-2507-X

4.     The I Ching Workbook by Robert Lee Wing ISBN 0-85030-372-9.

5.     Tao of Physics by Fritjof Capra ISBN: 9781590308356

  • Sign in to reply

Top Comments

  • bluescreen
    bluescreen over 10 years ago +1
    This looks really cool, Trevor. I was just introducing my kids to the I Ching last month + showing them how to generate hexagrams by throwing dice. Looking forward to seeing this come together.
  • taodude
    taodude over 10 years ago

    Whilst Marshalling today at at Llandow circuit https://www.facebook.com/Llandow?fref=ts, i had an idea for a game variant, and possibly using the mini touch-screen from 4D systems that i bought for my first Pi (one of the first model Bs out of the factory) instead of the PiFace to show better graphics.  More to follow after i come back from sailing tomorrow afternoon.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • taodude
    taodude over 10 years ago

    Lots of cool projects out there, this is going to be a good challenge.

     

    I've realised that my project is probably the only one based on an idea from a book rather than a film or TV, so i have the advantage that i don't have to make my project look like something people have already seen.  The downside is that I cannot grab some video clips off the Internet to give people an idea what i am going to make.

     

    I too have received the first consignment of kit bits.  The parcel arrived on Wednesday, but they took it away again before my wife could answer the door.  So, i grabbed it from the mail depot when we went out yesterday evening and unpacked it when we got back.

     

    Like most people on here, the bits that i am waiting for are the Pi A+, the Microstack Base board the Wolfson Sound card and the RTC shim.  I have the RPi 2 and the PiFace CAD 2, so i can make a start with the core program and the visual display elements, but the input seeds for the random number generation will have to wait for now.  I can't do the audio output either but that was planned for later so it is not so urgent for me.

     

    Anyway, to make up fro the lack of interesting videos about what inspired me to enter, here is a stop motion video that i made whilst unpacking the box.

     

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • taodude
    taodude over 10 years ago in reply to bluescreen

    Thanks for the feedback.  I'm looking forward to the challenge.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bluescreen
    bluescreen over 10 years ago

    This looks really cool, Trevor. I was just introducing my kids to the I Ching last month + showing them how to generate hexagrams by throwing dice. image

     

    Looking forward to seeing this come together.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube