Click here to Skip to main content
15,890,609 members
Everything / Microcontroller

Microcontroller

microcontroller

Great Reads

by Sacha Barber
A look at an excellent WinRT MVVM framework.
by jurhas
A small simulator for a 6 axis articulated robot
by Mike Hankey
Part 2 in an on going series of article featuring an Autonomus Rover
by GProssliner
cobj is a preprocessor based generator for interface based polymorphism

Latest Articles

by Richard Chambers
An introduction and a first walkthrough of using STM32CubeIDE with the ST32F3DISCOVERY board.
by André Marcos (Advisor), Gabriel Trepak, Vinícius Barauna Santana
Automating the Residential Lighting Activation Process Using Arduino
by Haily Swift
This article shows how to collect analog signal through the ADC module.
by Jan Dolinay
This article shows how to set up VS Code to debug your Arduino program.

All Articles

Sort by Updated

Microcontroller 

6 Jul 2023 by CPallini
Have you had a look at this: Building OpenSSL Library on ARM Cortex M4 based STM32F4 controller in an RTOS environment[^]?
6 Jul 2023 by Charan Kumar Oct2022
ATSAME70Q20 Microcontroller using freeRTOS in Atmel Studio IDE, need to implement openssl feature. What I have tried: Have an idea that I need to include all the openssl related files into my project but stuck in the libraries needed and how to...
5 Jul 2023 by Richard MacCutchan
You need to talk to the product's owners: https://www.microchip.com/en-us/education/developer-help/learn-tools-software/mcu-mpu/studio[^].
13 Apr 2023 by Charan Kumar Oct2022
Hi All, Just wanted to know if any driver update has happened for ATSAME70Q20 after 2016? What I have tried: Tried searching in microchip website didn't find anything.
13 Apr 2023 by OriginalGriff
Why not ask them? Their support site isn't hard to find ... Support | Microchip Technology[^]
1 Apr 2023 by Richard MacCutchan
A quick Google finds Visual TFT - Part 2: Events, buttons, check boxes[^]
1 Apr 2023 by User 15226833
Hi everyone. Can someone provide an example code for touchable button on TFT display for Mikromedia for PIC18FJ? I'am completly new to this. Thanks advance. What I have tried: Tried some code, but not working.
1 Apr 2023 by OriginalGriff
Quote: Tried some code, but not working. While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your...
17 Oct 2022 by konkod
for a prototype of a project i would like to use a "GardePro E8 Wildlife Camera" to Capture wildlife photos. Then the photos are going to be directly sent to a Jetson Nano device using wifi, where the photos are going to be processed using...
6 Jul 2022 by Denesh Neupane
i want to read and write the SD card using Renesas RX62N microcontroller.i got a lots of error related to library file E0562310:Undefined external symbol "_R_tfat_f_open" E0562310:Undefined external symbol "_write" E0562310:Undefined external...
6 Jul 2022 by CPallini
Those are linker errors, not compiler ones. You did include the proper headers but failed to link with the library. We cannot help further without more details about your scenario.
6 Jul 2022 by OriginalGriff
Go back to wherever you got the library from, and ask there: they will know their own product much better than we will, and will likely also have sample code that should work. We can't help you - we have no idea what code you are using at all!
21 Mar 2022 by Shawn777
NOTE: I am reposting this question to include the code I was talking about. I am working with the Arduino code at this link and I copied and pasted the code at the bottom of this writing. I need to setup a microcontroller for displaying 8-bit...
2 Dec 2021 by limwy
Hi...I have a problem with c programming for pic32 microcontroller. i have problem programming for I2C using PIC32. i need to program I2C to communicate with ADC chip AD9883A. I can write to the chip in sending a byte. But i have problem sending in multiple byte.This is my codes.. i hope someone...
14 Oct 2021 by Richard Chambers
An introduction and a first walkthrough of using STM32CubeIDE with the ST32F3DISCOVERY board.
1 Oct 2021 by Richard MacCutchan
See Teach, Learn, and Make with Raspberry Pi[^]
27 Sep 2021 by ilary_tecnimed
I am programming a microcontroller that obtained the string of a QRcode decodes the information without using external files to save the information. the language used is C. Thanks What I have tried: for now they are in the process of...
27 Sep 2021 by Richard Deeming
qrcode reader c - Google Search[^] Plenty of possibilities there. For example: GitHub - nu-book/zxing-cpp: C++ port of ZXing[^] GitHub - josephholsten/libdecodeqr: A C/C++ library for decoding QR code 2D barcodes[^]
12 Jul 2021 by Ahmet Furkan Sahin
write this program in MSP430 language : a- there is an array containing the average grades of 32 students which starts at the address 0x200 write a main program that converts the average grades to the letter grades using a LETTER...
12 Jul 2021 by CPallini
Start reading the MSP430 family documentation, with particular focus on the instruction set reference and assembler manual. Once you know the details of the chip assembly then the task becomes pretty trivial.
12 Jul 2021 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
12 Jul 2021 by Richard MacCutchan
Quote: i wanna ask a question for answer What question do you want to ask? If you are waiting for someone here to complete your assignment for you, I am afraid that you will be disappointed. People here will help you to fix errors in the code...
19 Jun 2021 by Divya B 2021
I am not getting the algorithm , flow chart for this program plss What I have tried: I have tried to understand the logic behind this topic
2 Jun 2021 by Merin Mariam Jose
I have written the code for perturb and observe(p&o) MPPT algorithm for the microcontroller PIC16F877A in c language, and while compiling, it was showing some errors (like 'Undeclared identifier 'setup_adc' in expression') . Can anyone provide...
1 Jun 2021 by Patrice T
Not your question, but: Advice: Learn to indent properly your code, it show its structure and it helps reading and understanding. It also helps spotting structures mistakes. #if defined(__PCM__)#include #fuses HS, NOWDT, NOPROTECT,...
16 Apr 2021 by Zwelon
I was trying to do Coding the vehicle to detect and count markers by PIC18F4550. The sensing using a Photo-Reflective Optical sensor mounted at an appropriate position underneath the vehicle. Markers implemented by using strips of black tape....
9 Dec 2020 by André Marcos (Advisor), Gabriel Trepak, Vinícius Barauna Santana
Automating the Residential Lighting Activation Process Using Arduino
13 Apr 2020 by Cake chan
Hello everybody. I need to transmit through UART a fixed number in the data block through the command. But it's not working... What I have tried: I did this : void USART2_IRQHandler(void) { if ( USART_GetITStatus(USART2, USART_IT_RXNE) ) ...
13 Dec 2019 by Member 14689089
refer this pdf https://rtime.felk.cvut.cz/can/sllin-rtlws14-paper.pdf[^] by ANK LABS
12 Dec 2019 by CPallini
There are many LIN transreceivers available, coming from different manufactures (Texas Instruments included). Choose the one having the best documentation (for instance application notes) and go on.
12 Dec 2019 by Member 14608858
Hi, I want to interface my IC(TMS320DM814x DaVinci Digital Media Processors) with LIN protocol but as per the datasheet, I am not able to find any LIN compatibility concept. Is there any possibility that any serial communication interface can be converted into a standard LIN protocol Thanks...
8 Oct 2019 by Member 14499788
Hallo evreyone, I am a beginner doing projects with TTN Currently I am working with Microchip SAMR34.I was trying to do a project where it reads the entered number and dsiplays it, The enetred number can be seen using an Emulator. I have used TeraTerm for this purpose. The serial Data handler...
8 Oct 2019 by Rick York
A few things are notable to me. 1: You do not initialize the value of recv. It probably should be set to 0 to be certain it enters your while loop at least once. 2: Your array buffer arr is of size 10 but you could potentially receive more than ten characters because the loop doesn't care how...
9 Sep 2019 by Haily Swift
This article shows how to collect analog signal through the ADC module.
26 Jun 2019 by Jan Dolinay
This article shows how to set up VS Code to debug your Arduino program.
26 Jun 2019 by Jan Dolinay
How to create and debug Arduino programs in Visual Studio code
23 Apr 2019 by OriginalGriff
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you. So we need you to do the...
25 Mar 2019 by Rick York
Two things look odd to me. First, your output messages say there are x bytes to read but you never display that many bytes that were read. What does that really mean? Maybe you should do a hex dump of them or something like that. Second, I have never used overlapped I/O. I always set the port...
25 Mar 2019 by Member 12278335
I have written a Win API application. To read the Serial port Data. It was Work Fine in Console application without any trouble. When i try it on win32 gui application its dosent work fine some time it reads few chars only some time its read complete buffer... Why its happens... Those data i...
16 Jan 2019 by José Simões
This project demos how easy it is to code a nanoFramework C# application to build a device connected to Azure IoT Hub using AMQP.
6 Nov 2018 by z3ngew
Hello everyone, I am building a code library in c to drive a keypad using atmega microcontroller, for that i have created 2 files keypad.h and keypad.c I am using GCC C compiler when i try to declare a static variable in .h file and then define it in .c file, as follow; .h file static char...
6 Nov 2018 by Richard MacCutchan
You should not be defining them in the header file if they are static, just in the .cpp file. If you are trying to create global variables then you should declare them extern in the header, and give them a value in one .cpp file only, like: // header.h extern int variable; extern int...
6 Nov 2018 by CPallini
You should declare your variable extern in the header and define it in the source file (without the static keywork: static in source file provides internal linkage). See, for instance: Internal linkage with static keyword in C - Stack Overflow[^].
7 Jul 2018 by CPallini
Programming Microchip PIC32MM microcontrollers in C++ and assembly
21 Jun 2018 by Member 13882472
Good day, I am currently involved in the project and I’m trying to understand why connecting,an arduino digital pin 4 to pin2 of a 2N4401 transistor vs 5V PSU to pin1 of a [^]2N4401 transistor; and pin 1 and Arduino VCC to 2N4401 pin 3, won't keep power. When shorting pin 1 and pin 3 on the...
9 Mar 2018 by KarstenK
You wont find a good and free code analysis tool. Normally code analysis is included in the IDE in which you are programming. The best way of avoiding bugs is to have some clear, simple and plain program flow. The parameter should be checked at input in your code (like when data is read from...
9 Mar 2018 by BetaEngineer
Hello, I want to know if there is a really good (yet free) software tool which can analyse my C code (which i have written based on PIC and 8051/52 controllers), can find possible coding mistakes and also check MISRA Compliance... What I have tried: I know about PC_LINT, LINT, SPLINT.. but...
6 Mar 2018 by Myriem el
hey everyone, for my project i need to import some files from a microcontroleur to my raspberry pi 3 and i need some help . Please any suggestion!!! What I have tried: i need help to know hox to proceed.thnx
6 Mar 2018 by CPallini
It depends on the communication medium between the raspberry and the microcontroller. For instance if you are using the UART (serial communication) then you have to implement a (very simple) protocol for transferring binary data.
21 Jan 2018 by Avni Salhotra
#include // library of functions for this chip #include // library containing printf() function #include "configureUSART.h" // library for configureUSART(baud) #include "configuration_bits.h" void printCharAsBinary(unsigned char number); void WaitOneSecond(void);...
21 Jan 2018 by Avni Salhotra
I have solved this thank you all for help
21 Jan 2018 by KarstenK
You must understand the so called bit shift operator (>>) which moves the bits of the input to lower side. So a repeating call moves all bits out of the memory. This operator moves the bits of the memory which is interpreted as some variable. To really understand it you must understand that all...
7 Jan 2018 by Member 13611541
i need to create a software on the monitor connected to the RPi. i need a code that can send data from my raspberry pi to the external connected microcontroller(say 8051) and store the data in it. then i can recollect the data from the microcontroller. What I have tried: i have the hardware...
28 Sep 2017 by Member 12254962
I am trying to create a programmable Keyboard with an Arduino. It was actually pretty easy, just using the keyboard library, printing a character when a button is pressed: no problems. I also created an application on the PC to communicate over the serial port with the Arduino, I can send a new...
28 Sep 2017 by Jochen Arndt
Quote: - serial port number changes sometimes That might happen when plugging the USB-to-Serial converter into a different connector. But it should not happen when not unplugging the converter. Quote: - another application can "steal" the port and kill the communication COM ports are...
4 Sep 2017 by Chris Boss
BASIC is one of the most misunderstood programming languages! Mention BASIC to a current software developer and one quickly finds out that it is not viewed favorably by most programmers.
3 Jul 2017 by coarist
This part of VR Karthikeyan's code: //printing the read data string str = BitConverter.ToString(e.Data); txtData.AppendText(str);//txtData is a TextBox To get the desirable output 00 00 e2 00 ......, change the above block to use string formatter "X" like this: foreach (byte i in e.Data) { ...
3 Jul 2017 by VR Karthikeyan
Hello,I have developed an application to read data from SerialPort in C#. Its working fine. But the data read from SerialPort is different than I expected.When I read the port using XCTU or Matlab it will gives the data like the following,00 00 e2 00 40 74 95 07 02 25 14 00 8a 92 00 77...
28 Apr 2017 by Member 13160285
Hi, I want to interface a microcontroller to a computer via USB using another microcontroller or USB interface card. I would also like to create a GUI on the PC for the user to be able to read/write with a button click on the GUI. If possible, I also want to store the read data in a file to be...
28 Apr 2017 by OriginalGriff
Quote: I had an option to use the Velleman K8055 to interface with USB, however when I tried to add in its .dll as the references, The Visual Studio does not allow that. That's probably because it's not a .NET Assembly - not all DLL files are, some are Native Code which means that you can;t use...
28 Apr 2017 by Member 13159993
Hi, i connected the esp8266wifi module with msp430fr2433 microcontroller, I am trying to connect with Server(PC) by using coding with at command but, it's not working properly. What I have tried: i connected the esp8266wifi module with msp430fr2433 microcontroller Tx_Uart("AT+CIPSTART =...
28 Apr 2017 by Richard MacCutchan
You already posted this question at How to connect esp8266 wifi module with server by using at command?[^]. Please do not repost.
1 Feb 2017 by NewPast
you could have a look on Machine Controller[^]It is about serial and Parallel Port in VB but could uses as DLL via C# or even converted to C#
30 Jan 2017 by JeezyWonder
What im trying to do, is get string data from my mk by pushing a button on it, but what im gettin on my c# program, its some random numbers(picture is attached). http://imgur.com/a/79PbmWhat I have tried:For example i want to receive "5", but i receive "650683" instead of it. On the mk...
29 Jan 2017 by JeezyWonder
Hello Good Fellows.Trying to receive data, from mk, using DataReceived and handler event, what i do is -push a button on a program(code is below) then LED on mk will torn on, then the data should be sent back to program(expecting 1, on byte value, but also tried string value, doesnt work)....
29 Jan 2017 by Patrice T
First thing to do is debug serial link.You need to find if microcontroler fail to send answer or the windows app fail to receive it, or if both fail.Use a terminal emulator instead of your app and send the command manually, if microcontroler works, you will the answer on terminal. Then do...
2 Dec 2016 by Member 12883832
I am a software engineering student and I want to do a project on controlling RC car through hand gestures.I want to use tools only related to software field not electronics e.g Proteus. So which tools should I be learning for it, currently I am a java pro, and some one told me that machine...
2 Dec 2016 by Richard MacCutchan
You need first to research the subjects you are interested in and find samples and tutorials on those subjects. You will soon see which languages and frameworks are used most.
21 Oct 2016 by marcus obrien
Computer engineering and the hidden neural network brain in the Arduino 101
3 Sep 2016 by Member 12702056
After i installed microsoft visual studio,i have this problem.i can't open many programs on my laptop.Only google chrome,notepad ,cygwin and some folders i can open,but when i want to open many other things,there is this problem "The procedure entry point LdrSystemDllInitBlock could not be...
3 Sep 2016 by Michael_Davies
Google provides many answers...The procedure entry point LdrSystemDllInitBlock could not be located - Microsoft Community[^]
23 Aug 2016 by hor_313
HelloI like to build a simple system with voice recognition, when user says "GO" system runs, and when he says "OPEN" it opens something, etc.How can I do that in C with ARM microcontrollers? Is it possible to have a system with small dictionary (20 to 50 words)? Is there simple way and...
23 Aug 2016 by Dave Kreskowiak
You're going to have to do you're own research on this, possible even go as far as implementing some of this in hardware yourself.Start reading these[^].
23 Aug 2016 by Cryptonite
I recommend the Raspy Pi for what you're trying to do. Spoiler alert! You will have fun tinkering with this board.Best Voice Recognition Software for Raspberry Pi - DIY Hacking[^]And this one is compiled using GCC (which is a C compiler):Adding speech recognition to your embedded...
12 Aug 2016 by Florian Rappl
We utilize the Microsoft Bot Framework in conjunction with LUIS to make a Node.js powered bot available online via an ASP.NET Web API proxy. A software mock for the smart home system is supplied. Likewise a tutorial for a hardware mock using the CC3200 and / or sensor tags is provided.
24 Jul 2016 by Member 12650471
please reply to this query as soon as possible.As i had designed the layout of 8051 microcontroller on rough sketch and its the coding part.so please help me in providing a better layout of the given 8051 microcontroller and steps regarding how to code for its designing in verilog...
24 Jul 2016 by CPallini
Quote:please help me in providing a better layout of the given 8051 microcontroller and steps regarding how to code for its designing in verilog language.You know this smells of homework.Anyway please read again your question: you ask for help in 'providing better layout'. What layout? You did...
28 Jun 2016 by Passion4Code
Let's learn something about Arduino & start our journey on IOT!
21 Jun 2016 by Dharmateja Challa
Tip on how to simulate external interrupts using Atmel Studio 7 for AVR Atmega MCUs
7 Jun 2016 by GProssliner
cobj is a preprocessor based generator for interface based polymorphism
6 Jun 2016 by Alexandr Surkov
How to build and run .Net Micro Framework 4.4 on STM32F4Discovery board.
13 Apr 2016 by Member 11246861
Within LAN, laptop gets signals from microcomputer and microcontroller using TCP/IP and SPI
30 Mar 2016 by Member 12425776
I have written a GUI in visual Studio(c#), I have a micro controller(Infenion XMC relax kit) I wanted to interface this GUI and micro controller, any suggestions on how to proceed with this will be helpfulWhat I have tried:This micro controller has only microusb input, so no serial...
30 Mar 2016 by Dave Kreskowiak
Umm....no. Your micro DOES have serial ports and you'll be using serial communication to talk to it from your PC. Plug your micro into the PC over USB and go into the Device Manager in Windows. You'll find it connected under Ports using a COM port (serial).If it isn't obvious already, you'll...
23 Mar 2016 by GaneshRfromSpace
I need to clock all port pins in my MKE02Z64VLD2 Controller. What is the Syntax to clock all port pins in a freescale's KE-02Z series controller ?What I have tried:SIM_SCGC5 |= SIM_SCGC5_PORTA_MASK | SIM_SCGC5_PORTB_MASK | SIM_SCGC5_PORTC_MASK | ...
21 Mar 2016 by GaneshRfromSpace
I am a beginner to Embedded Systems. I am working on Freescale Kinetis E series controllers. I use Kinetis Design Studio IDE. I wrote a project to blink the LEDS in a customized board. Now I want to make it as a S19 file which I would load to my other project using Terminal Application. Is it...
21 Mar 2016 by GaneshRfromSpace
I arrived at the solution after the help I obtained from code project answer is posted in my blog as I don"T know how to post pictures in answers in this site.Check this link [^]How do I convert an embedded C project file into a S19 file in Kinetis Design Studio ? | oscarganesh[^]
20 Mar 2016 by Arthur V. Ratz
Here's how to create S19 files:S-Record Generation with gcc for ARM/Kinetis | MCU on Eclipse[^]andConverting S19 Files into Binary Files with GNU objcopy | MCU on Eclipse[^]
12 Mar 2016 by stackprogramer
i read the header file stm micro Arm,in header file :micro is stm32f407 and environment is keilwhats means this state means in macro definition?#define ADC1 ((ADC_TypeDef *) ADC1_BASE)#define ADC2 ((ADC_TypeDef *) ADC2_BASE)definition ...
12 Mar 2016 by OriginalGriff
It's a standard #define - it means that the preprocessor will replace the text ADC1 with ((ADC_TypeDef *) ADC1_BASE)each time it sees it in your source code. Look up the definition of #define and you'll see what I mean:Preprocessor directives[^]
7 Mar 2016 by GaneshRfromSpace
I know conceptually how to build a bootloader. Like I know there are 2 versions of code, one is bootloader code and application code. I should program in such a way that if I press a push button, my bootloader code in the flash should get loaded and executed. If the key is not pressed the...
7 Mar 2016 by Jochen Arndt
The boot loader code itself is written to the board like any other code using the provided interface (J link in your case). Boot loaders are commmonly used to allow updating application code later without using the board specific programming interface. So a user might install an update using a...
29 Feb 2016 by Alexandr Surkov
My experience of using C++ with microcontrollers
20 Feb 2016 by Alexandr Surkov
How to build .Net Micro Framework 4.4 repo and create simple "Hello World" samle with .Net Micro Framework Emulator for Windows.
17 Feb 2016 by GaneshRfromSpace
I am using Kinetis Design Studio IDE and the Processor on which am programming is MKE02Z64VLD2 (Kinetis E series). The Flash memory area of this processor is 0X0000_0000 to 0X07FF_FFFF . My code is in C language. I need to put a piece of code into the flash memory space of this processor. If its...
17 Feb 2016 by Jochen Arndt
A compiler generates relocatable object files which are then linked. While there might be an option for the C compiler (check the manual for your compiler), it is more probable that a fixed start address is passed to the linker or defined in some configuration file (probably a processor specific...
26 Nov 2015 by lukeer
Hi forum,does anyone know of a resource covering arithmetic on aggregated types?I'm using addition like this:typedef struct{ uint8_t hb; uint8_t mb; uint8_t lb;}BunchOBytes;BunchOBytes Add(BunchOBytes in0, BuncOBytes in1){ BunchOBytes result; uint16_t...
26 Nov 2015 by Jochen Arndt
It seems that you don't want to use an enum but a structure:typedef struct{ unsigned hb; unsigned mb; unsigned lb;}BunchOBytes;
24 Nov 2015 by OriginalGriff
2 options here:1) We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it...