thanks PaulS,
yes, i forgot to change the 1023 value.
i've been modified TX code:
#include <VirtualWire.h>
int pot1 = A1;
int pot2 = A2;
int pot3 = A3;
int sen1 = 0;
int sen2 = 0;
int sen3 = 0;
int fade1 = 0;
int fade2 = 0;
int fade3 = 0;
void setup(){
Serial.begin(9600);
vw_set_ptt_inverted(true); // Required for RX Link Module
vw_setup(2000); // Bits per sec
}
void loop(){
sen1 = analogRead(pot1);
sen2 = analogRead(pot2);
sen3 = analogRead(pot3);
fade1 = sen1 / 4;
fade2 = sen2 / 4;
fade3 = sen3 / 4;
char fade1msg[12];
sprintf(fade1msg, "%03d:%03d:%03d", fade1, fade2, fade3);
vw_send((uint8_t *)fade1msg, strlen(fade1msg));
vw_wait_tx();
Serial.println(fade1msg);
}
result on serial monitor TX:
053:211:117
053:211:117
053:211:117
053:211:117
i still not understand to use this code on RX ![]()