Using Nano Every with with temperature/humidity sensor and LCD. Keep getting arduinojson..no such file or directory. Tried #include <ArduinoJSON.h> but same message.
From where you get the hint of it?
Did you install the library? If yes, which one? Randomly changing includes is not going to work.
Please post your sketch.
Your topic has been moved to a more suitable location on the forum.
Where/how do I find the json file?
Here is my sketch (note, it worked with the UNO but not with the NANO
When I upload the sketch.
No if you are getting error no such file found which clearly indicates that you have not installed the desored libary
Kindly download the desire so that the error can be resolved
I am not sure where to find the library. Please advise
That is, Nano Every ! Please tell us which library you are exactly using, it was asked before. If you installed it using the library manager, show the one that indicates "installed".
IDE 2.x
IDE 1.x
If you installed it as a zip from github, please provide the URL / link.
Which IDE are you using? IDE2.x, IDE1.x or a portable install of IDE1.x
Where?
In the link
I tried to download library and got this message:Downloading [email protected]
[email protected]
Failed to install library: ArduinoJson:6.20.1.
Error: 13 INTERNAL: Can't download library: Get "https://downloads.arduino.cc/libraries/github.com/bblanchon/ArduinoJson-6.20.1.zip": proxyconnect tcp: dial tcp: lookup _: no such host
Here is my sketch:#include <DHT.h>
#include <json.h>
#include <LiquidCrystal.h>
#define Type DHT11
int sensePin=2;
DHT HT (sensePin,Type);
float humidity;
float temp;
int rs=7;
int en=8;
int d4=9;
int d5=10;
int d6=11;
int d7=12;
int del1=1000;
int del2=100;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
Serial.begin(9600);
HT.begin();
delay (del1);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0,0);
humidity=HT.readHumidity();
temp=HT.readTemperature(true);
delay (del1);
lcd.setCursor(0,0);
lcd.print("Humidity = ");
lcd.print(humidity);
delay(del1);
lcd.setCursor (0,0);
lcd.print("Temperature = ");
lcd.println(temp);
delay (del1);
}
Comment-out the line:
// #include<json.h>
It is not used.
#include <DHT.h>
// #include <json.h>
#include <LiquidCrystal.h>
#define Type DHT11
int sensePin = 2;
DHT HT(sensePin, Type);
float humidity;
float temp;
int rs = 7;
int en = 8;
int d4 = 9;
int d5 = 10;
int d6 = 11;
int d7 = 12;
int del1 = 1000;
int del2 = 100;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
Serial.begin(9600);
HT.begin();
delay(del1);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0, 0);
humidity = HT.readHumidity();
temp = HT.readTemperature(true);
delay(del1);
lcd.setCursor(0, 0);
lcd.print("Humidity = ");
lcd.print(humidity);
delay(del1);
lcd.setCursor(0, 0);
lcd.print("Temperature = ");
lcd.println(temp);
delay(del1);
}
If the installation of the library fails, I'm not surprised that you get errors when you try to compile a code that uses that library.
If you still have the download error when trying to install the library, I suggest that you start a new topic about the error that you get in IDE 2.x - Arduino Forum ; this error will probably keep biting you if you don't solve it.
You can download that library using your web browser and install it manually; use sketch → include library → add .zip library as shown below.
Point to the downloaded zip and installation should work.
Please edit your post, select all code and click the <CODE>
button. Next save your post. Make sure that the text that I quoted is on it's own line before applying the code tags to the code.
Hi @dposit
This is caused by a misconfiguration in Arduino IDE. I'll be happy to provide assistance with that. sterretje suggested you create a new dedicated topic for that discussion so I'll wait to comment more there. I'll keep an eye out for your topic.
I would appreciate any help that you can provide. I am a beginner in Arduino and am not sure what github is or how to solve this problem
Where is code buttton
Not sure how this addresses my problem with the json library.
Thank you. I will try this
The sketch you posted in Post #11 works if you delete the line:
#include<json.h>
The simulation of YOUR SKETCH with the "json" line removed is in the link in Post #12.