Arduino not uploading sketch

Are you using virtual or digital pins?

Pete.

Hi Pete,
I am back at it … no luck.
I am using digital pins.
Regards

I’d always recommend using virtual pins.

Pete.

OK, I am a novice so was trying to keep it simple. I will have to read up on how to do that unless you have an explanation handy ?

You can try a simple sketch to test your device.

Here’s one I prepared earlier…

Pete.

Hi John,
That is what i did using the examples in the Arduino.
I got the Arduino to work using the PC, the next was using Blynk and again used the examples to achieve that. the Blynk app sees the Arduino but I cannot control the outputs selected.

Your using blynk legacy right ?

Blynk Version 2.27.30

Okay are you sure you’re using the right auth token ?

Yes Sir, I refreshed that in one of my attempts …

If the auth token is right, then I guess you’re not choosing the right board.

Let’s move step by step.

Board: “Arduino Uno WiFi Rev2, ATMEGA328” right ?

Yes Sir,

I would like you to try something, go to boards then Arduino AVR boards and choose Arduino uno wifi.

Can you send me a screenshot to your Arduino ide ?
Like this :

Hi John,


This hat you need ?

You may want this ?

Did you try the avr boards arduino uno wifi ?

To tel the truth I cannot remember - I have not been adventurous in the fear of bending something !

Okay buddy. Let’s start from the beginning step by step.

First the app section, go and update the app to the latest version which is 2.27.32

Second the wiring section, make sure the led is not damaged and connected the right way positive to pin and negative to ground.

Third the Arduino ide section, choose Arduino uno wifi rev2 and use this example :

/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest
  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.
    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app
  Blynk library is licensed under MIT license
  This example code is in public domain.
 *************************************************************
  This example shows how to use Arduino MKR 1010
  to connect your project to Blynk.
  Note: This requires WiFiNINA library
    from http://librarymanager/all#WiFiNINA
  Feel free to apply it to any other example. It's simple!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial

/* Fill-in your Template ID (only if using Blynk.Cloud) */
//#define BLYNK_TEMPLATE_ID   "YourTemplateID"


#include <SPI.h>
#include <WiFiNINA.h>
#include <BlynkSimpleWiFiNINA.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}

void loop()
{
  Blynk.run();
}