Teensy 3.1 using SSR Relays

Status
Not open for further replies.
Teensy 3.1 using SSR Relays For Reflow Oven

I developed a SMD Reflow Controller Shield for a teensy using A6, A7 & A8 for SSR's using transistor switches to control the 5v for the SSR's
I was intending to use a relay8 demo to test the shield, however the teensy 3.1 ARM mcu is not supported by its library

is there a library I can use for this?

P6240226.JPG

Relay8 Demo Code:
// relay8_Demo
// Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
// web: http://www.RinkyDinkElectronics.com/
//
// A quick demo of most of the library functions.
//

// Include our library :)
#include <relay8.h>

// Declare what pins our relays are connected to.
// relay8 supports from 1 to 8 relays.
//relay8 relay(2, 3, 4, 5, 6, 7, 8, 9);
relay8 relay(6, 7);

void setup()
{
// Nothing special is needed here
}

void loop()
{
// Switch the first relay on and off a couple of times
for (int t=0; t<3; t++)
{
relay.on(1);
delay(500);
relay.off(1);
delay(500);
}

// Switch the last relay on and off a couple of times
for (int t=0; t<3; t++)
{
relay.on(relay.numberOfRelays());
delay(500);
relay.off(relay.numberOfRelays());
delay(500);
}

// Switch all relays on and off a couple of times
for (int t=0; t<3; t++)
{
relay.allOn();
delay(500);
relay.allOff();
delay(500);
}

// Cycle through all relays slowly from the first to the last
// then a little faster back down again
for (int t=0; t<3; t++)
{
relay.cycleUp();
relay.cycleDown(100);
}

// Switch on all relays in sequence then switch then all off
// again a little faster
for (int t=0; t<3; t++)
{
relay.chaseUpOn(500);
relay.chaseUpOff();
}

// Switch on all relays in sequence then switch then all off
// again a little faster. This time in the opposite direction
for (int t=0; t<3; t++)
{
relay.chaseDownOn();
relay.chaseDownOff(100);
}
}

Error:
Arduino: 1.6.6 Hourly Build 2015/06/19 06:42 (Windows 7), Board:

"Teensy 3.1, Serial, 96 MHz optimized (overclock), US English"

In file included from relay8_Demo.ino:9:0:
C:\Arduino-1.6.5\libraries\relay8/relay8.h:41:6: error: #error

"Unsupported ARM MCU!"
#error "Unsupported ARM MCU!"
^
Error compiling

Thanks for any advice, Charles
 
Last edited:
At a first glance, this lib does not use anything special for AVR.
Maybe try to delete this line in relay8.h:
Code:
    #error "Unsupported ARM MCU!"
 
would i delete the section here?

#elif defined(__arm__)
#if defined(__SAM3X8E__)
#include "Arduino.h"
#else
#error "Unsupported ARM MCU!"
#endif

or just that line?

it gives other errors if I do either
 
Last edited:
errors elsewhere now it compiles fine for a megga2560

Arduino: 1.6.6 Hourly Build 2015/06/19 06:42 (Windows 7), Board: "Teensy 3.1, Serial, 72 MHz optimized, US English"

C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In constructor 'relay8::relay8(int, int, int, int, int, int, int, int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:40:27: error: 'OUTPUT' was not declared in this scope
pinMode(_relay_pin, OUTPUT);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:40:33: error: 'pinMode' was not declared in this scope
pinMode(_relay_pin, OUTPUT);
^
In file included from C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:22:0:
C:\Arduino-1.6.5\libraries\relay8\relay8.h:52:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:41:33: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin, !OUTPUT_ON_LEVEL);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:41:48: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin, !OUTPUT_ON_LEVEL);
^
In file included from C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:22:0:
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::eek:n(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.h:52:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:60:37: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin[relay-1], OUTPUT_ON_LEVEL);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:60:52: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin[relay-1], OUTPUT_ON_LEVEL);
^
In file included from C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:22:0:
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::eek:ff(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.h:52:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:68:38: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin[relay-1], !OUTPUT_ON_LEVEL);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:68:53: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin[relay-1], !OUTPUT_ON_LEVEL);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::cycleUp(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:96:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::cycleDown(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:106:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseUpOn(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:116:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseUpOff(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:125:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseDownOn(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:134:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseDownOff(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:143:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
Error compiling.
 
Code:
/*
  relay8.h - Arduino and chipKit library support for relay boards
  Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
  
  This library supports from 1 to 8 relays.

  You can find the latest version of the library at 
  http://www.RinkyDinkElectronics.com/

  This library is free software; you can redistribute it and/or
  modify it under the terms of the CC BY-NC-SA 3.0 license.
  Please see the included documents for further information.

  Commercial use of this library requires you to buy a license that
  will allow commercial use. This includes using the library,
  modified or not, as a tool to sell products.

  The license applies to all part of the library including the 
  examples and tools supplied with the library.
*/

#ifndef relay8_h
#define relay8_h

#define MAX_RELAYS			8
#define DEFAULT_DELAY_TIME	250
#define	NOT_IN_USE			9999

// OUTPUT_ON_LEVEL should be set to HIGH or LOW according to what signal switches your relays ON.
#define OUTPUT_ON_LEVEL	HIGH

class relay8
{ 
public:
	relay8(int pin1, int pin2=NOT_IN_USE, int pin3=NOT_IN_USE, int pin4=NOT_IN_USE, int pin5=NOT_IN_USE, int pin6=NOT_IN_USE, int pin7=NOT_IN_USE, int pin8=NOT_IN_USE);

	int		numberOfRelays();

	void	on(int relay);
	void	off(int relay);
	void	allOn();
	void	allOff();

	void	cycle(int delay_time=DEFAULT_DELAY_TIME);
	void	cycleUp(int delay_time=DEFAULT_DELAY_TIME);
	void	cycleDown(int delay_time=DEFAULT_DELAY_TIME);

	void	chaseUpOn(int delay_time=DEFAULT_DELAY_TIME);
	void	chaseUpOff(int delay_time=DEFAULT_DELAY_TIME);
	void	chaseDownOn(int delay_time=DEFAULT_DELAY_TIME);
	void	chaseDownOff(int delay_time=DEFAULT_DELAY_TIME);

private:
	int _relay_pin[8];
	int _number_of_relays;
};


#endif

Which errors ? I lost my crystal ball.
 
using mine or yours ....
Arduino: 1.6.6 Hourly Build 2015/06/19 06:42 (Windows 7), Board: "Teensy 3.1, Serial, 72 MHz optimized, US English"

Build options changed, rebuilding all

C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In constructor 'relay8::relay8(int, int, int, int, int, int, int, int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:40:27: error: 'OUTPUT' was not declared in this scope
pinMode(_relay_pin, OUTPUT);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:40:33: error: 'pinMode' was not declared in this scope
pinMode(_relay_pin, OUTPUT);
^
In file included from C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:22:0:
C:\Arduino-1.6.5\libraries\relay8\relay8.h:30:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:41:33: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin, !OUTPUT_ON_LEVEL);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:41:48: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin, !OUTPUT_ON_LEVEL);
^
In file included from C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:22:0:
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::eek:n(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.h:30:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:60:37: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin[relay-1], OUTPUT_ON_LEVEL);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:60:52: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin[relay-1], OUTPUT_ON_LEVEL);
^
In file included from C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:22:0:
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::eek:ff(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.h:30:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:68:38: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin[relay-1], !OUTPUT_ON_LEVEL);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:68:53: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin[relay-1], !OUTPUT_ON_LEVEL);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::cycleUp(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:96:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::cycleDown(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:106:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseUpOn(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:116:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseUpOff(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:125:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseDownOn(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:134:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseDownOff(int)':
C:\Arduino-1.6.5\libraries\relay8\relay8.cpp:143:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
 
Ill replace the library files and try again

EDIT... ohh its a 1.6.5 issue it doesnt compile for either 2560 or teensy in it. but does for 2560 in 1.6.3

2560
Sketch uses 2,672 bytes (1%) of program storage space. Maximum is 253,952 bytes.
Global variables use 27 bytes (0%) of dynamic memory, leaving 8,165 bytes for local variables. Maximum is 8,192 bytes.

teensy
Arduino: 1.6.3 (Windows 7), TD: 1.22, Board: "Teensy 3.1, Serial, 96 MHz optimized (overclock), US English"

C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In constructor 'relay8::relay8(int, int, int, int, int, int, int, int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:40:27: error: 'OUTPUT' was not declared in this scope
pinMode(_relay_pin, OUTPUT);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:40:33: error: 'pinMode' was not declared in this scope
pinMode(_relay_pin, OUTPUT);
^
In file included from C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:22:0:
C:\Arduino 1.6.3\libraries\relay8\relay8.h:30:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:41:33: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin, !OUTPUT_ON_LEVEL);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:41:48: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin, !OUTPUT_ON_LEVEL);
^
In file included from C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:22:0:
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In member function 'void relay8::eek:n(int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.h:30:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:60:37: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin[relay-1], OUTPUT_ON_LEVEL);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:60:52: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin[relay-1], OUTPUT_ON_LEVEL);
^
In file included from C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:22:0:
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In member function 'void relay8::eek:ff(int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.h:30:25: error: 'HIGH' was not declared in this scope
#define OUTPUT_ON_LEVEL HIGH
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:68:38: note: in expansion of macro 'OUTPUT_ON_LEVEL'
digitalWrite(_relay_pin[relay-1], !OUTPUT_ON_LEVEL);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:68:53: error: 'digitalWrite' was not declared in this scope
digitalWrite(_relay_pin[relay-1], !OUTPUT_ON_LEVEL);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In member function 'void relay8::cycleUp(int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:96:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In member function 'void relay8::cycleDown(int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:106:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseUpOn(int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:116:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseUpOff(int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:125:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseDownOn(int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:134:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp: In member function 'void relay8::chaseDownOff(int)':
C:\Arduino 1.6.3\libraries\relay8\relay8.cpp:143:19: error: 'delay' was not declared in this scope
delay(delay_time);
^
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
 
Last edited:
that worked... I have this error.. but it uploaded via the teensy window

Arduino: 1.6.3 (Windows 7), TD: 1.22, Board: "Teensy 3.1, Serial, 96 MHz optimized (overclock), US English"

Opening Teensy Loader...
Teensy Loader could not find the file relay8_Demo.cpp
Error compiling.

i copied the relay8.cpp and named it also relay8_Demo.cpp will try again

success...

Opening Teensy Loader...

Sketch uses 12,880 bytes (4%) of program storage space. Maximum is 262,144 bytes.
Global variables use 3,544 bytes (5%) of dynamic memory, leaving 61,992 bytes for local variables. Maximum is 65,536 bytes.

Thanks a lot man! :-D

the ssrs working :)
 
Last edited:
Re those Solid State Relays... SSR
Great product.
I have one inside a AC J-box. Controls lights in our attached garage. Reed switch/magnet at man-door into garage, controls the SSR which in turn is wired to AC outlets for two lights in garage.
Open door, lights are on before you have to look down for the step. Working in garage? Leave door 1/2 inch ajar.

Running now for several years. On/off many times a day.
I'm thinking of putting a microprocessor in the loop with a timeout for door left ajar which happens now and then. (A 555 timer would do but, hey.)
 
Last edited:
I have something wrong somewhere my supply drops to a half volt once i power the shield and the teensy looses power

the ssrs function fine direct to the teensy pins D6(6),D7(7),D8(8) to the ssrs so im happy bout that :)

however my shield uses teensy pins 20(A6), 21(A7), 22(A8) for relays
my serial port for the nextion display uses teensy pins 7(rx3) 8(tx3)
is it possible to switch them in the code?

Reflow_Shield_v0.32_bottom.JPGreflow_shield_v0.32_top.JPG
 
Last edited:
Re those Solid State Relays... SSR
Great product.
I have one inside a AC J-box. Controls lights in our attached garage. Reed switch/magnet at man-door into garage, controls the SSR which in turn is wired to AC outlets for two lights in garage.
Open door, lights are on before you have to look down for the step. Working in garage? Leave door 1/2 inch ajar.

Running now for several years. On/off many times a day.
I'm thinking of putting a microprocessor in the loop with a timeout for door left ajar which happens now and then. (A 555 timer would do but, hey.)


a nano v3 would be a good solution for easy updates if you wanted to change things often without using an ftdi like a pro mini
couple that with a bluetooth module and you could control it with several phone apps out there
an HC-06 module is pnp with dupont wires too all in cost about $7-12 for both
 
Last edited:
I switched to my earlier revision to try and see if the power issue occurs with that one, as they both arrived the same time, the main difference is I added an encoder and doesn't have a voltage shunt for the fan power so its always 12v supplied, I might have messed up the jumper circuit rushing to upload it to oshpark
P6200215.JPGv0.30bottom.JPG

It is much smaller though :) just wish my max31855 would arrive soon
 
Last edited:

ssr US $3.50 (ordered on 4th got it yesterday) http://www.ebay.com/itm/311165182503
nano v3 US $2.99 http://www.ebay.com/itm/191602576205
or
oshpark teensy3.1 US $17.00 http://store.oshpark.com/products/teensy-3-1
HC-SR501 Infrared PIR Motion Sensor Detector Module for Arduino US $1.20 http://www.ebay.com/itm/291432890167

I like the teensy better due to the speed and extra ports but for what he needs I dont think it needs so much

that motion sensor is cool, you could hack an outdoor light sensor instead of supplying the light and go to a outlet instead

theres probably lots of pnp solutions out there cheap, its more fun building one, and better if it works
 
Last edited:
found my issue with the 0.32 board
when i added the shunt selector I ran the vcc to the diode into the 12v neg pins copper above the selector
 
Last edited:
might be easier in my case to redesign the board using the same pins used here as they seem to be common in most sketches
I cut the trace and wired in a jumper to fix my issue anyway for now

UPDATED RenderV0.32aTOP.png
Changed relays to pins 3,4,5 also (relay test code capable of 1-8)
 
Last edited:
Nice work,

I use the rocket scream reflow shield with an 2009 'duino. They implemented a limited form of PID that might be of interest to you too. Github hosts the stuff.

I put a pretty big heat sink on mine, BTW.
 
Last edited:
Nice work,

I use the rocket scream reflow shield with an 2009 'duino. They implemented a limited form of PID that might be of interest to you too. Github hosts the stuff.

I put a pretty big heat sink on mine, BTW.
I looked at that too, and all the rest i could find, the controleo2 looks good also

I'd like to implement fuzzy logic, the teensy having a better chance, hoping it might be possible to come up with something that would work for that , but that's a second in line for just something that works in the meantime

I have two huge sinks also for when AC finally gets attached, (the kind you see that's common for this SSR)

Plan to implement the Nextion HMI TFT touch screen for control https://www.indiegogo.com/projects/nextion-a-cost-effective-high-performance-tft-hmi#/story
https://github.com/itead/ITEADLIB_Arduino_Nextion

Heres some early renders of the Nextion Editors screens
Screenshot 2015-06-21 09.19.40.pngScreenshot 2015-06-21 09.19.32.pngScreenshot 2015-06-21 09.20.01.pngScreenshot 2015-06-21 09.19.49.pngScreenshot 2015-06-21 09.20.09.pngScreenshot 2015-06-21 09.20.20.png
Of course theres so much you can add like gauges and other stuff but I'm keeping it simple on the display end for now

also on the i2C port it displays real-time current temp on a 0.96" IIC I2C 128X64 OLED LCD Display Module
http://www.ebay.com/itm/251987441348
 
Last edited:
I got the answer from the author of "relay8"
Unfortunately he refuses to update it (not able to test it). He states he had no luck with Teensy and it took him "3 days to remove the teensy drivers". :confused:

You can do the same with simple digitalWrite() by hand without lib, btw.
 
Weird yes? he mentioned to me to:
replace line 38 of relay8.h with the following:
#if defined(__SAM3X8E__) || (defined(__MK20DX128__) || defined(__MK20DX256__))
Perhaps you can run a github fork for teensy

But whatever you did to the .h file fixed it on my end, the teensy works fine using the demo sketch now,
I have a lot do do to incorporate a working sketch, I don't plan on using the relay8 for it anyway, it was merely a test to try my relay outputs
seeing them work is great, lotsa things to figure out yet, to include pids, temp profiles and dual display output as well as the nextion code too
Quite a big learning curve for someone who justs normally adjusts small things in code and normally messes it up more than makes it work :)
 
Last edited:
Status
Not open for further replies.
Back
Top