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 Title

Microcontroller 

10 Nov 2014 by Prilvesh K
Getting started with Spark Core,setup a guide for everyone new.
2 Jul 2014 by umar.techBOY
If you are good at highschool maths, basic c++ and know a little bit about electronics, you can follow this series of tutorials to make your DIY artificial intelligent robots.
19 Jan 2014 by Mike Hankey
Part 2 in an on going series of article featuring an Autonomus Rover
16 Jan 2015 by Surajit Das
I am looking for some detailed tutorials for programming in 8086 emulator. I searched online but couldn't find any tutorials. Can anyone please suggest me some tutorials or links? I would really appreciate it
16 Jan 2015 by Zoltán Zörgő
Ok, and what have you done to find any? You have really searched? How? This is the first google result: http://frz.ir/dl/tuts/8086_Assembly.pdf[^]Wha isn't this good enough?
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;
30 Jul 2010 by rawflewaffle
Hey everyoneI've been attempting to create a code-locked safe for a few days, and have come up with a schematic. The hardware is wrapping itself up, however I have hit a speed bump in my progress. I need help with the software. I am using a pic16f628a to drive a motor in two directions (open...
30 Jul 2010 by OriginalGriff
Google! "PIC Motor Control software" gives loads of hits - refine from there for your motor requirements and you are off.It would also be a good idea to have a look at the PIC website - they have good code examples and some SD's too.
30 Jul 2010 by E.F. Nijboer
Honestly... OriginalGriff's answer has a good point. If you would want it all handed to you on a plate you should have got a kit. You could also change the schematic and use a LS7220 Digital Lock IC for example so no actual programming has to be done (except kinda programming in the 4 digit...
31 Jul 2010 by E.F. Nijboer
Well, thanks for the vote of 1 but I cannot help you if you have no idea of what you expect for an answer. In my opinion my answer fits exactly to your question.I am also a little shocked by your statement that as far as you understand there aren't if then statements in assembly. Well, do you...
23 Mar 2015 by Sacha Barber
Showcase of how to use a sort of Attached Behaviours for ViewModels, and how to build BIG XAML apps
5 Mar 2014 by Mike Hankey
Learn the basic of the AVR micro controller and the assembly language
8 Nov 2011 by grilialex
Bug fixes and enhancements on AVRILOS SysTick module
11 Jun 2011 by grilialex
A Round-Robin OS (without pre-emptive multitasking) allowing rapid application development
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.
14 Oct 2021 by Richard Chambers
An introduction and a first walkthrough of using STM32CubeIDE with the ST32F3DISCOVERY board.
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 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...
21 Jan 2018 by Avni Salhotra
I have solved this thank you all for help
13 May 2012 by Ranabasu
Hi every1.... Im trying to communicate my PIC (18f4550) micro controller with PC using USB HID, and a DLL driver. The host application is developed in C#. The data send to the pc is collected using Event catcher function. Communication, data receiving all the stuffs going well. Though I...
14 May 2012 by El_Codero
14 May 2012 by Dave Kreskowiak
On top of what has already been said, there is no way you're going to get 1,000 frames a second updating a textbox.Your textbox should be painted on a "snapshot" schedule. Nobody can read 1,000 frames a second, so why are you trying to update at that rate? Update the textbox with the...
14 May 2012 by sjelen
At first look I think setText() method is your bottleneck.Try using BeginInvoke instead of Invoke.this.OutBox is a TextBox?Try:this.OutBox.AppendText("\r\n" + array[1].ToString());instead of:this.Outbox.Text = this.Outbox.Text + "\r\n" + array[1].ToString();I'm not familiar...
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...
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#
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...
29 Feb 2016 by Alexandr Surkov
My experience of using C++ with microcontrollers
22 Jun 2010 by siliconray
Hi,I am looking for free C/C++ interpreter. Is there one if you tested and you suggest it.
23 Jun 2010 by Sauruxum
see at this: http://codepad.org/[^]This suport many program languages and scriptsAnyway, a compiler is better.greetings
23 Jun 2010 by Sauro Viti
Look at Ch -- an embeddable C/C++ interpreter[^]: as stand-alone interpreter they have a free of charge version.Anyway you added the tag Microcontroller to your post... In such a scenario a compiler is too much better, both for speed and resource required.
16 May 2012 by SALIM SIDDIQUI
How can we call a C function from an assembly language module in keil uvision3?RegardsSalim SiddiquiSecure Meters Limited7737385122
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,...
3 Aug 2015 by EasyHero
i'm a c# programmer for close to 3 years now, i want to know if c# can be used for microcontroller programming
3 Aug 2015 by Sergey Alexandrovich Kryukov
There is nothing special about microcontroller programming and nothing so special about C# programming. These days, C# is implemented for CLR and CLI, so it can be used everywhere where CLR and CLI are implemented. It's less likely for microcontrollers, because of this part of this word...
3 Aug 2015 by User 59241
Yes if they support .NET Micro Framework. http://www.netmf.com/[^] and: https://en.wikipedia.org/wiki/.NET_Micro_Framework[^]A widely used platform is Netduino: https://en.wikipedia.org/wiki/Netduino[^]Search Netduino in CP articles.
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...
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...
17 Aug 2011 by ali2012
can i implement a high pass FIR filter with 0.3hz transition band width on AVR micro?
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...
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.
7 Jun 2016 by GProssliner
cobj is a preprocessor based generator for interface based polymorphism
7 Aug 2013 by z3ngew
Hello everyone,I want to know how to calculate the execution time of the ANSI c code instructions;I am using microcontroller, the crystal frequency is 20Mhz.Thanks in advance,z3ngew
7 Aug 2013 by Sergey Alexandrovich Kryukov
You can take the reference on the microcontroller, retrieve the duration of every commands involved, which is usually specified in processor's "ticks". Calculate the duration of the tick from the tact frequency used. Summarize all together.Another approach is to use real-time clock (it it is...
7 Aug 2013 by Ron Beyer
Sergey's answer is the best, I just wanted to add a couple notes that are longer than what would be placed in a comment...First, the crystal frequency does not really dictate processor clock cycle time, due to hardware multipliers and other factors. Processors can execute more than one clock...
12 Mar 2010 by limwy
hi there..i will like to ask if anyone have codes/program for me to study like display on the LCD or control the display throught the button or anything related to the board.. thanks so much...
8 Oct 2012 by Member 9495218
Hey..I need code for gsm modem , MEMS sensor , LCD and stepper motor with pic16F877 i am using Proteus and micro Cthank you
8 Oct 2012 by Richard MacCutchan
Fine, go and look for it, but do not expect anyone here to do your final project for you.
8 Oct 2012 by ridoy
Try with Google..Not expect code for your final project from here until you share something to us what you have tried..
20 Feb 2014 by Member 10611980
is there any codes for 16x32 LED matrix display using arduino? cascaded type of display please share some links or files..
20 Feb 2014 by enhzflep
In the interests of removing this question from the unanswered-questions queue, I'll repeat my comment.See here: Adafruit: Medium 16x32 RGB LED matrix panel
12 May 2010 by limwy
Hi I'm trying to combine two of my code to run together to calculate the frequency and number of line in HYSNC and VSYNC signal. I have got the VGA signal from a cpu and im using change notification to capture the VSYNC signal and timer/counter to capture or count the number of HSYNC lines in...
12 May 2010 by OriginalGriff
Micheal Godfroid is right in that you will probably get a better response from a more dedicated forum - there are PIC people here, but they are few and far between.In the mean time, I would start by checking inputs etc: Hook up a dual channel sig gen at a low frequency and check you catch...
20 Oct 2010 by cs101000
I am working on a windows forms application project. I have a serious problem in communicating with my avr microcontroller: at90usb1287. I have designed a form using vc# And according to the input from the user, am going to send data to eeprom of the avr micro. I want to send data into its...
19 Oct 2010 by Johnny J.
I very much doubt that anybody here has the knowledge to help you with that. Much better to contact the hardware manufacturers and get the information from them
19 Oct 2010 by LloydA111
Could you not simply use the programmer software to modify the EEPROM? Or do you specifically need to be able to modify it using the application your making in VS?If you do need to do it with your VS project, then there are two choices that I can think of. Either write some code for the AVR...
19 Oct 2010 by JF2015
Hi,to communicate with the AVR, you will need the AtUsbHid.dll provided by Atmel. You should contact them or try to get the dll from their website. I'm pretty sure they also have some examples (at least for basic stuff as connecting to the controller)
21 Oct 2016 by marcus obrien
Computer engineering and the hidden neural network brain in the Arduino 101
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...
28 May 2011 by grilialex
Flow and tools to convert Xilinx bitstreams to C source code for programming FPGA/CPLD
9 Apr 2012 by Khalid Sabtan
hellowi have made a cut in one end of my serial port cable,i want to reconnect the wires to a null cable,but i have found only 7 wires + 1 uninsualted wire ,i also have found a foil. using the ovometer i have recoginzed wire number 2,3,4,5,6,7,and 8,i could not found wire number 1 and wire...
9 Apr 2012 by OriginalGriff
Assuming this is a 9 pin connector, don't worry too much about 1 and 9 - they are DCD and RI respectively so you probably don't need them.Just try connecting 2->3, 7->8 and 4->6 and see if it works. (5 is ground, and you shouldn't need it for null modem since it doesn't go anywhere)
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.
26 Jun 2019 by Jan Dolinay
How to create and debug Arduino programs in Visual Studio code
26 Jun 2019 by Jan Dolinay
This article shows how to set up VS Code to debug your Arduino program.
25 Jun 2013 by vatai38
Short guide about how to create STM32 flashing ready project in Code::Blocks
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[^]
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...
25 Jun 2005 by Jerome_D
This article discovers how to design a hierarchical state machine engine for embedded system development.
1 Jun 2005 by Jerome_D
This article discovers how to develop and simulate cross-platform embedded systems using the UML State Machine Wizard.
9 Jun 2010 by Miljko
HI,I am a fourth year student of Electrical Engineering and currently doing my BSc work with the task to implement a 6LoWPAN[^] stack on TI cc2530.Whether we can help with the selection of a stack, advice about stack and implementation, or refer me to where I could find information that...
9 Nov 2014 by charankumar516
Absolute Beginner's Guide to Arduino
28 Jun 2016 by Passion4Code
Let's learn something about Arduino & start our journey on IOT!
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.
13 Apr 2016 by Member 11246861
Within LAN, laptop gets signals from microcomputer and microcontroller using TCP/IP and SPI
22 Apr 2012 by tetuko99
hi all,i have some problems.the case is, i want to transmitted some data with serial RS-232 to my project windows Form application.i send that data using microcontroller AVR.all data is (temperature, humidity , air pressure , and RPM speed) ( float data, int data , int data ...
24 Apr 2012 by Mohibur Rashid
First of all serial communication with RS232 should have to be reliable. no exception.Now splitup your problem in to three parts1. General Protocol, what data mean what. Say you are sending temperature, humidity. both are floating point data, how would you know? you will have to identify...
6 Feb 2012 by OriginalGriff
I tell you what - you tell me what I should do to fix my car, and I'll tell you.But you can't - you don't know what's wrong with it, what the symptoms are, or even if I have a car.So why ask us a similar question?We can't answer that as is, apart for suggesting that you wire it...
6 Feb 2012 by CPallini
Probably you meant: "how to measure, using a microcontroller, the AC analog input voltage and report it on a LCD display connected to the microcontroller itself?".Even posted this way the question is too broad, you have to be more specific (after all this is 'Quick' Answers) and detail your...
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) ) ...
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 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...
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 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.
3 May 2013 by khaledkee
I'm going to make a project depends on Hi-Speed USB so I wanna ask some questions about the chips that allow that high speed 480 Mbit per second(51 MBpS).Is there any FPGA that has 2 USBF-IFCs to be connected with two computer?Can USB3300 or USB3280 IC be connected with any microcontroller...
7 Dec 2012 by Shayan Ali Bhatti
Wireless Home Automation via XBEE Modules
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 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...
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[^].
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 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 | ...
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...