Visit The New, Modern Unix Linux Community

Very Basic Arduino Uno Board Testing

Thread Tools Search this Thread
Top Forums Programming Very Basic Arduino Uno Board Testing
# 8  
Here is a similar python script which reads this Arduino test setup:

import serial
ser = serial.Serial("/dev/cu.usbserial-40", 9600)
while True:

macos$ python
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1
 - Analog0: 5.00   Analog1: 3.33   Digital2: 1   Digital3: 1

# 9  
FWIW, the WS2812b LED strip 3 connections are:

5V line to 5V on Arduino
GND line to GND on Arduino
Signal line (LED control) to configured output pin on Arduino via a 100 Ohm resistor.

That's all.

Some web pages talk of a 1000uF capacitor but I didn't need to use one. Everything just worked fine. Of course, your LED strip may be different.

Last edited by hicksd8; 12-19-2019 at 01:46 PM..
This User Gave Thanks to hicksd8 For This Post:
# 10  
Originally Posted by hicksd8
Of course, your LED strip may be different.
Yep, my "cheap from China strip" is four wires.

Note: I may move all the LED project discussion to a different thread.

Anyway, back to this particular testing, have updated my python test script a tiny bit:

macos$ cat
import serial
import pathlib
device = "/dev/cu.usbserial-40"
file = pathlib.Path(device)
if file.exists() == False:
    print("Arduino Device "+device+" Does Not Exist")
    ser = serial.Serial(device, 9600)
    while True:
        cc = str(ser.readline())

Very Basic Arduino Uno Board Testing-img_8680jpg
# 11  
So I guess that 4-wire is 12V supply and 3 red,green, blue wires to ground for each colour.

Hmmm.......That means configuring a separate Arduino pin for each color, I guess.

Place an order for WS2812b strip. Dead easy on Arduno.
# 12  
Hi Neo...
Apologies for any typos...

Remember to quote your Arduino Programmer version as there have been a great many variations over the years. Mine is Version 0015 and is ancient along with my Arduino Diecimila Boards.
Also your device name could be different for differing versions of your particiular board.

My two Arduinos have differing device names.

Also I have a conversion board that I built on Veroboard that sits over the pins of mine to use RS232 as well as USB if you are interested.
# 13  

I don't think I need RS232, since I only will be using USB (for programming and dev), Bluetooth, 3G (SMS) and WIFI.

Just ordered two cheap WIFI shields for fun.


The Arduino IDE I am using is version 1.8.10 for macOS.

I have no idea about this board details.... it is some cheap Chinese made UNO board and when I try to pull the board info from the IDE, it says something like "native serial cannot get board info", but I'm not focused on that, as I have a lot of different boards on the way, including some more (Chinese) UNOs, some Nanos and some Pro Minis to deploy on my motorcycle when I get to that stage of fun. This board is just the first one that came; I have a lot more toys on the way for this caper.

LOL, I have 30 pending AliExpress orders, including a RobotKit, OLED modules, many sensors and shields, cases jumpers, nik-nak kits (resisters, caps, diodes,, etc) ...... I plan to connect the Robot in my home to my motorcycle via 3G SMS... all part of the future fun. Maybe do some home automation (I guess they call it IoT NB, these days).

This is really fun... haha . Especially living in Thailand with easy access to all things duty free and Chinese Smilie

PS: Here is the robot kit I plan to modify (when it arrives in a few weeks):


I could have built the robot much cheaper than the kit price, but "what the heck"... it's all fun!

LOL It was too funny looking, so I had to get it... But I'll do a different discussion thread on Mr. Robot Dude. I need to think how this guy fits into my IoT playground.

Very Basic Arduino Uno Board Testing-robotjpg
# 14  

Well, this just about concludes my first test on a "cheap" Chinese Uno board from AliExpress. To summarize lessons learned:
  • The Arduino IDE installs easily and works great on my Mac Pro 2013 running the latest version of Catalina.
  • The cheap Uno board from AliExpress seems to work fine on a simple serial test.
  • Arduino sketch (programming) is really easy and fun.
  • The serial monitor in the IDE worked fine.
  • It was easy to use Python to monitor the same serial port.
  • This is really fun.

So, I'm done with this basic Arduino Uno test and even though I had no prior experience with the Arduino, it was very simple and easy to get started.

I have over 30 open shipments on the way from China to Thailand from AliExpress with many different sensors, kits, displays, shields and modules to test and play with.

Next, I will learn the basics of the (very cheap) 1602A display with the four-pin I2C bus attached to the Arduino Uno, just because I happen to have one in front of me.

Of course, any of my code samples I post will have device addresses unique to my devices. YMMV as I am not writing, modifying or building sketches to be cross-platform compliant (that is not my goal). My goal is to have fun connecting my cars, motorcycles, phones, devices and computers, I guess some would call this IoT, but whatever we call it, it is really fun to be able to get very cheap components from China sent to me with no (or very small) shipping costs from fairly close by (China borders Thailand), duty free with AliExpress. I don't use Banggood (I recently requested Banggood to delete my account); as I do not like their business model and prefer AliExpress because I can chat directly with each seller and ask them questions, especially since I am in the same timezone (for the most part) for normal business hours in China.

My final editorial comment..... I really like AliExpress, and my account shows close to 200 orders to date with AliExpress vendors over the years. The sellers there have always provided good customer service for the most part, far superior to other online sites like this. Banggood, on the other hand, does not permit us to talk directly to sellers, and when we have a problem they approach customer service like a kind of legal inquisition, and so their customer service is, at least to me, horrible. I'm lucky, as a fun-loving electronics hobbyist, to be so close to China, for sure; and it feels good to be getting back into this hobby after so many years focused solely on software.

Arduino ! Better late than never, as they say!
These 2 Users Gave Thanks to Neo For This Post:

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #213
Difficulty: Medium
OSPF-TE is an extension to OSPF extending the expressivity to allow for traffic engineering and use on non-IP networks.
True or False?

8 More Discussions You Might Find Interesting

1. Programming

Basic Arduino UNO Bluetooth Testing with the BLE 4.0 (CC2541, MLT-BT04 IC)

Here is a sketch to do basic testing for the Arduino UNO and the MLT-BT04. This BLE module works with IOS (iPhone) and I'll add some details on my IOS testing with an iPhone in a follow-up post. For now, here is the basic BLE (HM-10) sketch for the Arduino UNO: /* Arduino test-code... (7 Replies)
Discussion started by: Neo
7 Replies

2. Programming

Arduino UNIX Time - Syncing Computer UNIX Time to Arduino Time with Python

Just finished a quick Python script to send the current unix time over to the Arduino from macOS, so in the absence of GPS or some other way to get the unix timestamp (epoch time) to the Arduino, I can get my macOS and Arduino UNO synced to within a second. Normally, when the Arduino starts... (9 Replies)
Discussion started by: Neo
9 Replies

3. Programming

Chinese Arduino UNO Clones - The Wavgat versus the generic UNO R3 Clone - The Winner Is?

Waiting for more fun Ardunio parts from AliExpress, I decided to test two cheap Chinese Arduino UNO clones. The Arduino UNO R3 (CH340G) MEGA328P The Wavgat UNO R3 (CH340G) MEGA328P Both of these Chinese Ardunio clones sell for about $3 USD, delivered to your door. The bottom line is... (0 Replies)
Discussion started by: Neo
0 Replies

4. Programming

More Arduino Stuff...

HI all... (Apologies for any typos.) To add to Neo's Arduino subject matter I have decided to upload this in ".zip" format. Ignore "*.info" files these are AMIGA icons only and also the "HAM" drawer as these are photos in ancient AMIGA HAM modes. I have noticed that there are current... (6 Replies)
Discussion started by: wisecracker
6 Replies

5. Programming

Arduino-cli - Uploading to Unknown Chinese Arduino Boards using the Arduino Command Line Interface

In my further exploration of Arduino, today I decided to install the arduino-cli on my mac today. I followed the instructions for macOS but when I got to this part: arduino-cli board list I got the dreaded "Unknown" Fully Qualified Board Name... (1 Reply)
Discussion started by: Neo
1 Replies

6. OS X (Apple)

Semi-Automatic Arduino Detection.

I am working on a semi-auto detection idea for Arduino for the Scope project. It does require a little user intervention but minimal. It works by just responding to two on screen prompts to unplug and plug Arduino into a USB port. There are two versions and both work perfectly well and give... (3 Replies)
Discussion started by: wisecracker
3 Replies

7. OS X (Apple)

Arduino Diecimila Board Access...

This is a very simple starter DEMO to access Arduino Diecimila Board for the Macbook Pro 13" OSX 10.7.5... A potentiometer is connected between 5V and Gnd with the wiper connected to ANALOG IN 0 on the Arduino. This was adjusted to give the Ms and Ls as seen... I now have DC in for this... (0 Replies)
Discussion started by: wisecracker
0 Replies

8. Shell Programming and Scripting

Use The Terminal To Test Arduino Is Working.

Hi all... (Apologies for any typos at all.) This is a step by step _script_ to check if your Arduino is talking to your Linux or Macbook Pro computer using the Terminal... It works on at least 3 Linux flavours and now the Macbook Pro... I hope you find it useful as a simple check for... (0 Replies)
Discussion started by: wisecracker
0 Replies

Featured Tech Videos