Intel Galileo Gen 2

This is a nice bit of kit that I think I would like to play with… galileo2_002

The Galileo SBCs are supported with an open source Linux OS that includes the Arduino software libraries, “enabling scalability and re-use of existing software, called ‘sketches’,” says Intel. Currently, Intel has created two versions of Linux for the board: “the default is a small Linux. If you add an SD card to your kit, you can add a more fully-featured Linux,” says Intel. The boards can be programmed from Windows, Mac OS, and Linux host computers. The boards are currently supported with a Yocto 1.4 “Poky” Linux release, according to Intel.

Processor, Memory & Storage

  • Processor — Intel Quark X1000 SoC @ 400MHz:
  • 32-bit Intel Pentium-compatible ISA
  • 512KB embedded SRAM (in Quark SoC)
  • 256MB DDR3 DRAM
  • 8MB legacy SPI NOR flash (for firmware/bootloader)
  • 8KB EEPROM (programmable via utilities)
  • Micro SD slot — supports up to 32GB
  • Supports USB 2.0 storage devices

Arduino-compatible expansion headers, containing

  • Support both 3.3V or 5V shields, as selected by an onboard jumper.
  • 20x GPIOs (12 fully native speed)
  • 6x analog inputs
  • 6x PWMs with 12-bit resolution
  • 1x SPI master
  • 2x UARTs (one shared with console UART)
  • 1x I2C master
  • RTC — onboard battery option
  • Reset button for resetting sketch and attached shields (resets Ethernet)
  • Reboot button for processor restart

Connectivity

  • 10/100 Ethernet (RJ45; supports Power-over-Ethernet)
  • USB 2.0 Host port (Type A)
  • USB 2.0 Client port (micro-USB, Type B)

Power

  • 7-15VDC input jack (consumption not currently specified)
  • Supports Power-over-Ethernet (requires PoE module)
  • Optional 3V coin cell battery for standby power

Dimensions

  • 123.8 x 72.0mm

Intel Galileo Gen 2

This is a nice bit of kit that I think I would like to play with…

galileo2_002

The Galileo SBCs are supported with an open source Linux OS that includes the Arduino software libraries, “enabling scalability and re-use of existing software, called ‘sketches’,” says Intel. Currently, Intel has created two versions of Linux for the board: “the default is a small Linux. If you add an SD card to your kit, you can add a more fully-featured Linux,” says Intel. The boards can be programmed from Windows, Mac OS, and Linux host computers. The boards are currently supported with a Yocto 1.4 “Poky” Linux release, according to Intel.

Processor, Memory & Storage

  • Processor — Intel Quark X1000 SoC @ 400MHz:
  • 32-bit Intel Pentium-compatible ISA
  • 512KB embedded SRAM (in Quark SoC)
  • 256MB DDR3 DRAM
  • 8MB legacy SPI NOR flash (for firmware/bootloader)
  • 8KB EEPROM (programmable via utilities)
  • Micro SD slot — supports up to 32GB
  • Supports USB 2.0 storage devices

Arduino-compatible expansion headers, containing

  • Support both 3.3V or 5V shields, as selected by an onboard jumper.
  • 20x GPIOs (12 fully native speed)
  • 6x analog inputs
  • 6x PWMs with 12-bit resolution
  • 1x SPI master
  • 2x UARTs (one shared with console UART)
  • 1x I2C master
  • RTC — onboard battery option
  • Reset button for resetting sketch and attached shields (resets Ethernet)
  • Reboot button for processor restart

Connectivity

  • 10/100 Ethernet (RJ45; supports Power-over-Ethernet)
  • USB 2.0 Host port (Type A)
  • USB 2.0 Client port (micro-USB, Type B)

Power

  • 7-15VDC input jack (consumption not currently specified)
  • Supports Power-over-Ethernet (requires PoE module)
  • Optional 3V coin cell battery for standby power

Dimensions

  • 123.8 x 72.0mm

Intel Galileo Gen 2 was originally published on TechRoss’ Blog

Software, software, software

I guess you can tell the last week or so has been dedicated to the software for my Aquarium Controller.

20140722-202638-73598667.jpgThe DS1307 Real-Time-Clock has been a pain since I put it together. After countless checks and rechecks, lots Googling and moving back and forth from the Arduino Uno where it was working to the Arduino Mega where it was not working, I found the solution.

On the Uno, the SDA is wired to Analogue A4 and the SCL is wired to Analogue A5. With the Mega, the SDA needs to go to 20 and the SCL goes to pin 21.

Some of the other things I have included:

      • Restart in previous status after reboot
      • Temperatures are now read in real time
      • pH is read in real time
      • Event timmers
      • Feeding pause, on timmer or manual
      • Dossing on timmer or manual
      • Auto Top up including float switch
      • Alarm system

The dossing function is working great except it is using delays to do the servo swing and this prevents the controller from doing anything else during that time.

I have also managed to get Python to talk to PushBullet and send me updates which could include anything. The big problem here is when I use Python to talk to the Arduino, as the serial connection is established, the Arduino resets. There are a few methods to prevent this that I must still try.

I removed the DFRobots LCD panel with buttons and replaced it with the simple 16×2 LCD. I am not going to use the buttons so have rather used my own buttons for certain tasks.

I was looking at a menu system but my brain couldn’t take it and my ultimate aim is to install a touch screen so will implement a menu structure then. For now, all settings are hard coded at upload time.

I did run a live test using the temperature probe and pH probe on my current tank over the weekend and all seemed to be 100%. I now need to look at a housing and such like and then take the controller live.

Software, software, software was originally published on TechRoss’ Blog

Main Display

Last night I spent some time tweaking my code for the controller’s Feeding Pause and did a general clean up on the code. I then started work on what will be the main display when the controller is running.

IMG_0954

I am quite happy with the layout. The only real problem I am having is with the RTC. The time always seems to be doing something funny. If I want the seconds to be only 2 digits, then somehow the time changes to 10:11:##.

Anyway, so at a glance you can see the main temp sensor readings (which in my case will be in the sump), and you can see the pH values.

The three little characters in the top right are a heart to show that no alarms are active and that the system is in good shape. The little ‘H’ is showing that the heater is active. The little fish is there to show that the feeding pause is active. You can also see I have added a degree symbol next to my temp reading.

The LCD custom character or gylph is made up of up to eight characters of 5×8 pixels. Each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row. To display a custom character on the LCD you need to write() its number.

Assuming you have your LCD up and running and can display information, this is the code I used for my gylphs:

uint8_t heatericon[8] = {0×0,0xa,0xa,0xe,0xa,0xa,0×0};
uint8_t degicon[8] = {0×0,0xe,0xa,0xe,0×0,0×0,0×0};
uint8_t hearticon[8] = {0×0,0xa,0×15,0×11,0xa,0×4,0×0};

Then in setup() you need to create the character:

lcd.createChar(1,heatericon);
lcd.createChar(2,degicon);
lcd.createChar(3,hearticon);

and to display it:

lcd.write(1);

I use the heater char to display if the heater is active or not. This is the code I am using in my main display section:

if(heaterActive == true){
lcd.write(1);
}

The ‘heaterActive’ flag is just a boolean value that I set to true when the heater is activated.

Main Display was originally published on TechRoss’ Blog

Aquarium Controller Update

I have been working hard on my Arduino based aquarium controller and not taken any time to keep this page up to date. I actually can’t believe how far I have gotten and also how much fun I am having with the Arduino.

So at this stage, I have the following working:

    • LCD Screen installed as a shield and working. I am able to write to it and use the on-board buttons.  (I don’t have a menu system working yet and will probably be my weekend goal)
    • Real-Time-Clock kit built and installed.
    • Temperature sensors installed and working.  I am using the DS18B20 sensors. They are great because you can run multiple sensors of one pin. I have one waterproof probe that will be for the sump and be the main heater control and then 2 bare sensors.
    • pH probe is working but I have not calibrated it yet. I would rather leave it sealed up until I am going to  use it.
    • Servo basses dosing system is in place and working, I now need to build the hardware part and will defiantly need a stronger servo.
    • I am using a 8 port relay board to control switches and this is working nicely.  I have a temp setup that turns the ‘heater’ relay on and off depending on the temperature form the main temp sensor.
    • I have program in a feeding pause button
    • I also have a manual dossing button installed.

Below are some of the pics I have taken over the last week or so showing my progress.

IMG_0833Humble beginnings. A single LM35 temperature sensor.

IMG_0894
LCD Screen tests with temperature display. I have replaced this screen for now.

IMG_0921New Arduino Mega, LCD Screen shield and full size bread-board. Two of the new DS18B20 temperature sensors can be seen on the right of the bread-board.

IMG_0931Real-Time-Clock kit.

IMG_0933 Working Real-Time-Clock. It took forever to get the code for this to work. Very very frustrating.

IMG_0940Current state of affairs. Main temp probe and pH probe not in the picture.

Aquarium Controller Update was originally published on TechRoss’ Blog

Help stop Kendall Jones from hunting in Africa.

I don’t normally go for this whole on-line partitioning and voting thing but I really think this bitch need to be stopped.

SIGN THE PARTITION HERE

Kendall Jones is an American born hunter who has entered the continent and has been hunting African wildlife under the facade of conservation. She has publicly stated that she hopes to have a television hunting show and she is using endangered and helpless African animals as a stepping stone to further her popularity on social media platforms.

There is a picture of her as a young girl holding up a Leopard she had just shot… when you start shooting big 5 and endangered species, piss of back to the USA. Trophy hunting should be banned.

kendall-jones-teenage-hunter-14 Kendall-Jones-rhino kendall-jones-leopard kendaljones

Help stop Kendall Jones from hunting in Africa. was originally published on TechRoss’ Blog

FTS 6th July 2014

20140706-200419-72259450.jpgI have added some more color with some new plants and today I added 5 male and 5 female Endlers and 2 Corydoras panda. Unfortunately one of the make Endlers did not make it.

I am still battling BBA and am running out of options. My CO2 was at 8ppm this morning and it is pumping so I must be losing CO2 to the atmosphere. I have cranked the bubbles up so will see what happens. I also removed the spray bar and let the return direct to the centre of the tank. This with the addition of a very small powerhead in the back corner are giving nice circulation and actually blowing the CO2 into the tank rather than letting it get to the surface.

FTS 6th July 2014 was originally published on TechRoss’ Blog