When you had it hooked up to 5v you may have destroyed the pins.
Check by trying to use them as Serial1 pins to another MCU (or I suppose you could connect Rx to Tx ) to see if they still function ok.
No good saying...
#include <ADC.h>
#define testpin A9 // analog pin to be tested
#include <RunningMedian.h>
ADC* adc = new ADC();
/////////// Buffer declaration///////////////////////////////<--- This probably does nothing
#define...
If you originally connected the light controller to the Teensy WITHOUT the RS232/TTL level converter then you will have killed those Teensy inputs. +/-12V into a 3.3v device results in sudden death of the device or...
That was written for Teensy 2 and 2++ which were 5v MCU's.
The web page should have a warning, that 3.3v should be used for Teensy 1.36 and 4.x.
@Paul could you have a look at this. it's NOT the first time that this...
Serial.begin does not take any account of the "baud rate" presented to it. It simply goes as fast as it can. You could use Serial.begin(0) and it would still funtion.
In fact the best entry is probably Serial.begin(9)...
It might be worth first just trying to write to the display.
There does not seem to much information about writing to the display with 8bit parallel interface.
Have a look at this.
/*
Web Server
A simple web server that shows the value of the analog input pins.
using an Arduino Wiznet Ethernet shield.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
* Analog inputs attached to...
I was about to say post your code, but I see you have a pointer to it, but that is not the code that you are
trying to run because as you said you have modified it.
Please post the code you are trying to run.
#include <FlexCAN.h>
#ifndef __MK66FX1M0__
#error "Teensy 3.6 with dual CAN bus is required to run this example"
#endif
static CAN_message_t msg;
static uint8_t hex = "0123456789abcdef";
//...
I am confused by your last statement.
Are you saying it is fine if you don't attempt to parse the data?
If that is so then the problem is with parsing the data.
Following on from my previous post, I have downloaded and placed below the Description of the USB Host.
With this device you simply write to a hardware serial port with the USB Host device attached.
As far as I...
Looking at the PJRC web site and the Component Locations shown at the bottom of this page, it looks like F1.
Something is shorting, or consuming lots of current, somewhere.
Best sort that out first.
If a tractor is anything like a car, it is a very NOISY electrical environment.
It is likely that large voltage spikes are interfering with the comms. It is quite likely to kill any not protected electronics.
I...
I am not an electronics engineer, but you also need to protect the BAT54S, so I would guess before the BAT54S.
10k seems rather high to me, have you been able to communicate with a 10k series resistor to the T4 and...
Just a thought and may not be the best way to do it, but the T4 is SO much faster than the Nano,
I think you could interrogate each line individually using DigReadFast just as quick as reading the whole port on the...
I am interested, but at present I have no Server knowledge so can be of little help to you.
I have a project that I am working on that may benefit in the future.
I have been using EByte Lora modules very effectively with no problems.
Those that I have been using have a Uart interface which makes them very easy to use.
No need for the radiohead library, which I have read can be...
If you have not been contacted by now, I would remind them of their promise.
The T4.1 is in stock now, but low levels of stock. Don't wait until they run out again.
You have no connection to 5v, GND nor VDD.
You may find this useful. It has connection details and suggested software.
Be aware that the software is intended for Arduino, so modify accordingly...around Serial...
Any chance you could share your code, perhaps highlighting (bold text) the areas that make the difference.
I am sure that there are many here interested in what you have done, myself included, that will be glad to use...
As you can see it's a Teensy both ends.
I was just concerned when Paul said that LC cannot have data/variables that are NOT 16 or 32 bit aligned on the LC.
As you can see in my demonstration code above I have data...
The LC operates just fine with the pack in, hence my question.
With the pack in total size is reported as 7 bytes, without 12 bytes.
It's no good sending an unknown length packet over the air if the sending and...
#include <timelib.h>;
#pragma pack(push,1)
typedef struct MasterToSlaveCommandType {
byte command;
unsigned long time;
uint16_t tempEtAl; // can be maby things not just temperature...
Hi, glad you got it working.
In future, when you post, could you enclose your code between code tags using the # key.
That's what @DakeAK did. As you can see it makes your post so much more readable and the code...
Have you read the DM556T data sheet?
In order to switch the inputs you must supply a minimum of 7mA with a typical of 10mA.
Are those devices capable of supplying(sinking) that current?
Yes as you can see you have the USB port set to usb:0/4.... and now it is working. I have found this to be the best settings for getting the serial (usb) monitor to work.
Watch out it can switch back to COM? (whatever...
So is the Nextion as an HMI with the benefit that the Human - Machine - Interface transactions can be offloaded to the Nextion display making the overall project much simpler.
It's called distributed logic.
Ok, I gave in. Settings below will give a good printout.
The settings below may give problems printing out. It depends whether it compile when set to a COM? port or Teensy port. I have circled the settings which may...
Would you please take a print screen of your Visual Micro / Visual Studio set up. I am not at my pc at the moment so cannot show you mine. Sometimes there can be problems selecting the correct way to output from the...
The only potential problem would be if the displays were powered up and sending data to Teensy before the Teensy 3.3V was established.
If this is a concern then you could use a 3.3V regulator which has a power enable...
Since VisualMicro takes over the Arduino IDE, try running the code under Arduino.
If it works there then there is a settings problem with VisualMicro.
I use it (VisualMicro) all the time and I can confirm that it does...