Robin2:
PLEASE ... help us to help you. Post the programs without me having to ask you.
...R
Robin, you really are trying here I appreciate that so much. I spent 4 hours last night alone trying to change up all sorts of code & my wife is upset that I'm not spending time with her or the kids this week so believe me I'm giving it all I have.
So I tried 3 different codes to get my data to a screen. My question is which one of these is the most likely to work when I integrate into your code?
1st this is the code that works transmitting to the app & the serial monitor, heres what perfect data looks like to those outputs. The numbers change based on how hard I press the sensor. In this code I have no outputs to a display however.
0;0;136;147;0;0;18;18;25;28;26;45;345;464;512;511;487;464;0;
Code to App & Serial Monitor that works
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11); // RX | TX
void setup()
{
Serial.begin(9600);
BTSerial.begin(9600);
}
void loop()
{
if (BTSerial.available())
Serial.write(BTSerial.read());
if (Serial.available())
BTSerial.write(Serial.read());
}
Serial Segment display attempt 1: Try to read the sensor data through softwareserial Rx & then write it out the Tx. The data is not received properly if I do that, but it does show up on the display. If I add a serial monitor to this code the data looks like this.
072;61;84;711161775;775;2664476666600;34455;0;;0;;;99;9;600;00;0;0;0;0;;0
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11); // RX | TX
void setup()
{
BTSerial.begin(9600);
}
void loop()
{
if (BTSerial.available())
BTSerial.write(BTSerial.read());
}
Serial Segment Display attempt 2: I tried to send the data to the A0 pin. No luck, nothing comes out
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11); // RX | TX
int ForceData = A0;
void setup()
{
BTSerial.begin(9600);
}
void loop()
{
if (BTSerial.available())
int ForceData = BTSerial.read();
}
4 bit Tube LED attempt 1: I try to put the data directly into A0 pin like I was doing in the past straight off the sensor from the past project. The screen just gives me numbers in the 600s that keep changing without any effect from the sensor
#include <TM1637Display.h>
const int CLK = 9; //Set the CLK pin connection to the display
const int DIO = 8; //Set the DIO pin connection to the display
int flexiForcePin = A0;
TM1637Display display(CLK, DIO); //set up the 4-Digit Display.
void setup()
{
display.setBrightness(0x0a); //set the diplay to maximum brightness
}
void loop()
{
int flexiForceReading = analogRead(flexiForcePin);
{
display.showNumberDec(flexiForceReading); //Display the Variable value;
delay(500); //A half second delay between steps.
}
}
REWARD IS NOW $100 Amazon Gift Card, its a lot cheaper than divorce at this point! 