Notifications
Clear all

Getting started with Arduino Nano 33 Iot - Programming Issue

10 Posts
3 Users
0 Likes
519 Views
Jim H
(@jim-h)
Active Member
Joined: 10 months ago
Posts: 8
Topic starter  

In regard to the BLE Central and Peripheral control of LED.

I can't get mine to work at all.  I checked everything too.

Has anybody else had a problem with getting this to work? 


   
Quote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3462
 

@jim-h Is that a sample sketch?

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon


   
ReplyQuote
Jim H
(@jim-h)
Active Member
Joined: 10 months ago
Posts: 8
Topic starter  

Two Example Sketch/s from the Arduino IDE was used in this lesson.

They are from directory:

Examples, Arduino BLE, Central, LED Control.

and

Examples, Arduino BLE, Peripheral, LED.

Thanks for asking.

Jim H

 


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3462
 

@jim-h Sorry, even after installing the Arduino BLE library I don't see those examples. You need to be very precise when telling us something doesn't work. In order for us to replicate the problem we have to have the same board selected, have the same libraries installed, and then we can load the same examples. The words you use must be exact, there are many similar libs and examples. Sometimes a screenshot of which I am attaching a sample. The error is I am selecting an UNO and this is an INCOMPATIBLE sketch. What board do you have selected? Notice in the screenshot the examples were found under INCOMPATIBLE. I knew it would not compile but went ahead to see why.

Screen Shot 2022 04 04 at 14.42.58

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3462
 

@jim-h I installed an appropriate board and both those sketches compile clean. What board are you targeting? 

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon


   
ReplyQuote
Jim H
(@jim-h)
Active Member
Joined: 10 months ago
Posts: 8
Topic starter  

Ron, my example sketches I used did compile OK.  The demo just didn't work.

The Arduino board I used for this demo was the Nano 33 Iot.

 


   
ReplyQuote
Jim H
(@jim-h)
Active Member
Joined: 10 months ago
Posts: 8
Topic starter  

Ron, I didn't do this on my own.  I followed Bill's video lesson " Getting Started with the Arduino Nano 33 Iot".


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3462
 

@jim-h Ok, so you used the same sketch as Bill and wired the same board to the same components as Bill. His worked but yours didn't. Is that the situation?

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon


   
ReplyQuote
Jim H
(@jim-h)
Active Member
Joined: 10 months ago
Posts: 8
Topic starter  

@zander Yes, that is correct.


   
ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 3 years ago
Posts: 1484
 

@jim-h

Posted by: @jim-h

@zander Yes, that is correct.

It's not enough to just quote someone else's failures 🙂

Please tell us your own experiences, specifically code warnings and errors from your compiler!
Did you turn them up in your preferences?

Cheers


   
ReplyQuote