Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



sketch too big erro...
 
Share:
Notifications
Clear all

[Solved] sketch too big error attempting to verify/compile project

69 Posts
2 Users
0 Reactions
23.9 K Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2815
 

Document: attached PDF.

 

 

I'd assume the ESP32 is just as easy to get started with. It goes something like this:

Instead of the SP8266 package (described here), you'll need to install the ESP32 package:

I'd probably use the first one to begin with ... if that is messy or old, then you could consider using one of the 3 more generic ones. With the generic ones you may need an additional library for the display though.

 

 


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2815
 

Funny: Some cheap smart "lightbulbs" actually run on the ESP8266 ...

https://youtu.be/_2yjB6T9uC8


   
ReplyQuote
 tvr4
(@tvr4)
Estimable Member
Joined: 5 years ago
Posts: 122
Topic starter  

Wow I never know where was a such thing as a Smart Light bulb.  Cool

 

This post was modified 5 years ago by tvr4

   
ReplyQuote
 tvr4
(@tvr4)
Estimable Member
Joined: 5 years ago
Posts: 122
Topic starter  

These are great links.  I am going to do a little studying. 
I did have a problem with the amazon.de link since I can not read German.

The stack exchange link looks great and seems to be just what I am looking to do.  I am not sure there was an understandable solution to that post but I will look further.

Can you interpret the ESP32 pinout and tell me which pins are usable for input, output and analog, digital?

THANKS !

 

This post was modified 5 years ago by tvr4

   
ReplyQuote
 tvr4
(@tvr4)
Estimable Member
Joined: 5 years ago
Posts: 122
Topic starter  

Found this great ESP32 pinout reference.  It also contains links to a getting started with the ESP32 and other tutorials.
Very valuable resource

https://randomnerdtutorials.com/esp32-pinout-reference-gpios/


   
ReplyQuote
 tvr4
(@tvr4)
Estimable Member
Joined: 5 years ago
Posts: 122
Topic starter  

I was tinkering with the ESP32 board today and it is cool. 

This board is made by Heltec and it uses their heltec.h library.  There are more libraries but this one is a start

The OLED coding is different from the Adafruit SD1307 and SD7735.  I looked over their library reference and there is a learning curve but it is managable.

Biggest issue
SoftwareSerial.h library will not work.  All the examples I have for the GPS use this so I need to figure this out

Wiring Issue
How to wire the GPS module and SC Card modules


   
ReplyQuote
 tvr4
(@tvr4)
Estimable Member
Joined: 5 years ago
Posts: 122
Topic starter  

I tried uploading the color data logger with SD support sketch yesterday and now the Uno is not functional.  I think it overwrote the bootloader.  If I try to upload anything, even the blink sketch, to the Uno I just get an error that the device is not responding.

I ordered a new board but think I am not going to mess with the color data logger any more.
I am going to work on the smaller data logger that uses a Nano and a monochrome screen for text only.

Then I can port that project o the ESP32


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2815
 

Yeah, moving to another board does occasional come with little puzzles when it comes to the pins.
So far I have found that different boards, use different pin for internal stuff (for example the LED, or serial data, etc).
You can see this in the link you gave for the ESP32 pinout (great link by the way!).
Especially with already installed items like a display where the display is already hardwired to certain pins.

As for the bootloader of your Uno, I think you can upload it again, but it does come with some challenges for sure.

As for the analog pins, I think the pins labeled ADC (Analog Digital Converter) can read analog signals.
For outputting an analog signal you'd probably need pins marked with DAC (Digital Analog Converter), but I didn't see any on the picture.

Just for future reference, I've included the picture here as well 😋 

For testing: I found the ESP8266 to be pretty resilient and considering its price, it wouldn't be too bad if you'd blow one up 🤣 .
On that note: I've set the serial port to my ESP8266 very high, and on rare occasions I have to unplug it from the USB port for it to work again with the Arduino IDE (uploading code). Not a biggy though.

Do you have any reference for the GPS module and SD card reader you're using?

In serach of pins: I do recall my old display to be working either in slow or fast mode, and it needed either PWM or SPI pins to work.
My Display article shows the difference in wiring and some of that info may be useful for you as well (I'm thinking display and SD card).

I'd assume the GPS module just uses a simple serial communication with the Arduino, so that one shouldn't be too hard to move around to a different PIN.


   
ReplyQuote
 tvr4
(@tvr4)
Estimable Member
Joined: 5 years ago
Posts: 122
Topic starter  

@hans

GPS module is easy.  VCC, GND, TX and RX.  That's it.  It is a uBlox 6M GPS Module.

The SD module is a little more complicated.  I don't know the manufacturer.  But here is one on amazon that looks like the one I have
It has six pins GND, VCC, MISO, MOSI, SCK, CS

I was able to get the SD module working on my Nano so I know it can be done.  The Nano has an Adafruit SSD1206 monochrome display, uBlox 6M GPS, and microSD module.

Wiring is as follows
---------------------
Nano Pin 5V to all components VCC
Nano GND to all components GND

Nano D13 to OLED SCK & SD SCK
Nano D12 to SD MISO
Nano D11 to OLED SDA(MOSI)
Nano D10 to OLED CS
Nano D9 to OLED RES(RESET)
Nano D8 to OLED DC
Nano D6 to GPS RX
Nano D5 to GPS TX
Nano D4 to SD CS

The display on the ESP32 is I2C and not SPI like the one I have on the Nano so the wiring will be a little simpler.

I am hoping to take these components over to the ESP32.  I don't have any specific code for the data logger yet.
I found a few on the web that may work but I have to look,


   
ReplyQuote
Page 5 / 5
Share: