Wednesday, March 20, 2013

Mar.18-20 RPi + 4DIAC proof of concept

My first 4DIAC RPi tests 

At least 3 others have used RPi with forte already. See forums. I had it easier. Now the Raspian packages are very current.  Traveling next week and have to get my own breadboard and couple other things. But can have software and apps ready to go. No RPi FBs in 4DIAC, but the FB interface for some would be similar to Lego Mindstorms (LMS) and CBC v2 FBs.  

Also I hope to use CBCv2 sensors and small motors with RPi.

Compiled 4diac on RPi. Needed to install more software that were current and instated the first time. Minor problem in 4DIAC development encouraged me to move from default tip to 1.3.1 

Tested using a cross-compiler with Eclipse under Ubuntu.

So far everything seems very straight forward with the RPi
All parts for a proof concept work as 4diac on posix is expected to.

Link collection: [some good, some random]

Control LED by GPIO  on RPi 

Monday, March 18, 2013

Mar.14-16 RPi moving along

Preliminary information found and tested. 
Next step is with 4DIAC. [next post Wed or Fri]

First RPi boot (Mar.14)
Hardest part was to get all the connectors.
Took less than 30 minutes after had everything.
  • Power supply 1.2A / 5V
    • Model B instructions says 700mA to 1200mA
      • 700mA what chip needs as minimum; may include keyboard and mouse.
      • 1200mA so board does not get too hot.
    • with micro USB connector 
      • [Mobile phone charges can be used if have around 1000mA or more]
  • HDMI to DVI-D connector  (to display)
    • Select B for digital output
  • Keyboard and mouse
  • Recommend Ethernet cable 
    • No network to plug Ethernet into in lab (due to firewalls)
    • Used wireless with mobile phone
First boot worked as documented. 

Commands to remember:

  • sudo raspi-config to if forgot anything, like turn on ssh.
  • startx  to  graphic interface

Second RPi "configuration" addition and Blinky (Mar.16)

  • LapTop and RPi connected to Mobile phone as router
  • RPi wifi via LinkSys WiFi USB stick
  • wifi via DLink USB with Mobile phone
    • see book True WiPi 
      • using wpa_gui
        • Add and connect to mobile phone
      • LinkSys WiFi USB stick
      • no USB port extender so plugged in/out keyboard and mouse
        • obviously not good idea long-term
    • connect using Putty to text screen
  • SSH 
    • turned on for RPi via raspi-config
      • but setting not kept (how)
    • use PuTty for laptop
    • WPA2 choices
      • WPA (TKIP) on mobile phone, but WPA personal on RPI
      • AES-based CCMP:  WPA2(AES) on mobile phone and WPA2 CCMP on RPi
    • Minor problem: At first the Kindle was on and connected to mobile phone taking 2nd of the 2 connections allowed.
    1st RPi test : Turn LED on (Mar.16)
    just connect ground pin and 3.3V source pin or 5V source pin (brighter)
    2nd RPi test : Control LED by GPIO (Mar.16)
    On to C++ and 4DIAC now...

    Wednesday, March 6, 2013

    Mar.3 RaspberryPi start-up for course

    Quick Set-up Need
    RaspberryPi cannot be used straight of the box, because the box only has the 1 small board of the computer. It was designed for using in Computer Science education, so the set-up is a part of this education.  Being low-cost and many have it fits our criteria for use in the course. 

    However so our focus stays on the IEC 61499 / 4DIAC course, a quick guide to set-up HW for RaspberryPi projects that map to the lessons is needed.  [This Post will be updated.]

    This blog entry will be collection of how-to links used to get going with RaspberryPi: generally; with HW needed for lessons; and to use with 4DIAC. With additional text the better links will go into the course.

    Generally
    HW needed for lessons
    • LED
    • Light sensor
    • motor  (Gertboard needed)