Amazing ARDUINO Killer

19,811

166

46

Posted

Introduction: Amazing ARDUINO Killer

We love the Arduino board and it's prototyping platform . It makes the complete prototyping process smooth and enjoying with the help of it's add on such as Arduino IDE and a huge community support.But sooner or later you will find that the specifications provided by the arduino boards is not enough . And then the problem arises about which board should we use so that our desires are fulfilled.Also How easy is to use a non arduino board .

After a good research I found that the STM 32 is perfect fit.

Visit My Blog For more :- http://hardiqv.blogspot.com/

Step 1: Difference Between STM32 and Arduino Nano

Comparison between the two development boards can be made out on Two things namingly hardware and software.

From the hardware aspect the STM32 board completely outshines over the Arduino Nano.

The STM32 Has almost identical form factor as compared to Arduino Nano.

STM32 also provides some of the great features as compared to the Arduino Nano.

It has on Board RTC and you can also connect a battery to the Vbat pin in order to retain the the RTC data.

It also has a DMA controller. DMA stands for Direct Memory Access Controller.

Also all the pins on the STM32 pins are 5v tolerant so don't need any level converters.

Also You can Program the STM32 board using the favorite Arduino IDE which makes it damn simple easy.

If you want to know more about the STM32 you can download the datasheet provided.

Step 2: Getting Started With STM32

Go ahead and purchase this board from here :-STM32 board

Also big thanks for rogerclark for his awesome work to make these boards easy to use.

Also Download the Files attached in this instructable.

Also Install the The FTDI adapter driver on your computer.

Also Download the latest Arduino IDE from arduino.cc

Step 3: Configuring the Setup

Unzip the Arduino_STM32 zip file and extract it in the hardware folder of the arduino directory.

Then open Arduino IDE and go to boards Manager and install Arduino SAM boards.

Then Wire Your FTDI adapter as Follows:-

FTDI Pin STM32 Pin

VCC(3.3v) 3.3v

GND GND

RX PA9 or A9

TX PA10 or A10

Make sure you change the jumper from 5v to 3.3v on FTDI adapter.

Now also Install the The flash Tool provided in this instructable.

Step 4: Burning Bootloader to the STM32 Board

Just like the Arduino boards you can also install the Bootloader on to the STM32 Development Board .

By burning Bootloader to the board you can then directly program the board without any USB to serial adapter.

Open The Flash Tool and select the Correct COM PORT and then click Next.

and then choose STM32 medium Density 64KB and Then click next.

And then click next and then choose the .bin file provided in this instructable and then click next .

After a while you will see that the Bootloader is flashed.

Now you don't need USB to serial adapter.

Now you can directly program the STM32 board with The USB Cable

Step 5: UPLOADING Your First Program

Now Connect the STM32 board to the computer using a USB cable and Open Arduino IDE

Set the Parameters as Shown In the PHOTO.

Now Upload This Code

void setup() {
// initialize digital pin PC13 as an output.

pinMode(PC13, OUTPUT);

}

void loop()

{

digitalWrite(PC13, HIGH);

// turn the LED on (HIGH is the voltage level)

delay(1000); // wait for a second

digitalWrite(PC13, LOW); // turn the LED off by making the voltage LOW

delay(1000); // wait for a second

}

After Uploading The code You will see the LED Light Flashing.

YOU can also play with the delay to achieve different timing effects.

Step 6: FINISH

This is a basic guide to get you started .

Of course I will be making more instructables on this board so you can get better understanding.

Almost all arduino libraries are supported.

I hope you liked This Instructable .

Please Consider voting me in the contest and also Check my blog for more tutorials, projects and Facts

http://hardiqv.blogspot.com/

Share

Recommendations

  • Epilog Challenge 9

    Epilog Challenge 9
  • Paper Contest 2018

    Paper Contest 2018
  • First Time Author Contest 2018

    First Time Author Contest 2018
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

45 Comments

By any chance do you know where I can get the STM32s with the GPIO pin sets presoldered? I live in a residence with very sensitive smoke/fire detectors in each room.

Will these instructions work out the same way with someone who is on a Linux bases operating system?

i am sorry these instructions are for the windows operating system. Also the above attached files are .exe files which are only executable in Windows if you are not using any Windows emulator on Linux.

Alright, got all my boards flashed properly now.
Should I move both boot pins to 0?
When I plug it in by USB it doesnt show up.

Yes move the jumpers to 0 and plug in the USB and go to device manager and see if it shows mini maple or something else

If it doesn't then download zadig and stm32 virtual com port driver and install it .
I have attached the files in this instructable

Well I have made some progress.

Here is where I am at. Ill provide screenshots of what the IDE is showing.

When I run the IDE it compiles and sends it to the device, it says it completed correctly, but the PC13 led is still blinking quickly. I can't figure out why it is not running the script. Still really happy with the progress I have made though.
Eagerly waiting for your reply.

Screenshot from 2017-07-16 14:36:25.pngScreenshot from 2017-07-16 14:37:21.pngScreenshot from 2017-07-16 14:37:45.png

according to your pictures it seems that the board is not recognized by the arduino .

does it show up in COM menu. You have to select the correct com port then it will upload.

It does not show up with the USB0 com port on my desktop. Ive tried this same setup on another linux machine and I have to go through the same steps to get the sketch to load onto the board. I have to have the "upload_router" script running in an open terminal window for the DFU to see the board after I hit its reset button, it then catches it and then I can upload to the board, then the IDE resets the board and it runs the newly uploaded script.

I have been talking to Roger Clark on a Gitter chat room about this very issue. When I figure out what the issue is I shall report back with the solution.

Hope You find a solution