Тёмный

Part 4. Using a button - Embedded C Programming with PIC18F14K50 

CircuitBread
Подписаться 114 тыс.
Просмотров 3,1 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@mglepd
@mglepd Год назад
These tutorials are great. The easy videos and the more in-depth web pages from Sergei make an excellent combination. Thanks CircuitBread!
@mykyar9142
@mykyar9142 Год назад
Damn, allowing pullups via interrupt register. Looks tricky. Thank you for the tutorials!
@srinivasn.v3218
@srinivasn.v3218 Год назад
Amazing tutorial, please make more videos on interrupt on non-blocking, ADC and PWM
@CircuitBread
@CircuitBread Год назад
I'm falling behind Sergey's written tutorials (again!) - he's already done non-blocking, PWM, but I don't think he's done ADC yet. They're here: www.circuitbread.com/tutorials/series/embedded-c-programming-with-the-pic18f14k50
@anithasshenoy6662
@anithasshenoy6662 7 месяцев назад
Thank you very much for pointing me to this tutorial. I understood how an external switch could be used to control the output. However this is not exactly what I was looking for. pls bear with me for explaining. suppose I have a lead acid battery and want to control its charging etc. By default I can detect the voltage and set it charge when the voltage drops to 11 volt. However a user must be able to set it as he wishes , say at 10v or 10.5v In this scenario , I need a facility to set the voltage settings by a user , just we do in any software programs. The microcontroller should remember the new settings and work accordingly till a new setting is done. ideally the microcontroller should remember this last setting even if the power was disconnected ( Am I wrong in thinking that this setting should be set in eeprom ?). I am new to micro controller programming and trying for practical implementation. Thanks once again for such a detailed and wonderful tutorial.
@CircuitBread
@CircuitBread 7 месяцев назад
It sounds like you'll need an ADC to measure the voltage of the lead acid battery, which I'm not sure if you've already figured that portion out but it should be pretty easy (and use a voltage divider before feeding that voltage to the MCU or else you'll damage it). As for the settings, it's just having the buttons setup properly so they can be used the way you want. It's the logic internally once your program receives a button input. Is that button setup to "increase the threshold voltage" or to "decrease the threshold voltage"? That's all internal to the software you're writing of how to react to the different button inputs. You are correct that you'll want something non-volatile like your EEPROM, that would be great!
@anithasshenoy6662
@anithasshenoy6662 7 месяцев назад
@@CircuitBread Thank you for responding. I have already made a programe to detect the voltage through ADC and react according to the input voltage - as you said using voltage divider. All that is working nicely. But , the final product will be used by someone else and he might want to have a different setting according to the battery he uses. So I need to incorporate a user setup function , which he can do without having to change the code. I can provide an LCD to show the setup. A software will not be complete without having such setups and I do that in most of the softwares I have designed. We can store such settings in some sort of database or other file system. easily. But I am in dark here regarding micro controllers, EEPROMS. It would be a great help if you can throw some light on this. Thanks again.
@Marco_Ris
@Marco_Ris 11 месяцев назад
Wow just stumbled over the series. Nice job and thank you for your sharing. I'm a software engineer but i'm very interested in hardware/software development in my freetime. i have an idea for a puzzlebox with an ATMEGA but dont know how to control things. Is there a possible way to show how i can control components (i.e. buzzer, rfid reader, lcd display,...) in the programming language c?
@CircuitBread
@CircuitBread 11 месяцев назад
Oh, definitely. Unfortunately, I'm *way* behind on creating the videos to accompany the tutorials that Sergey has written but he's shown how to do a lot of those things (and other things) in his written tutorials. I recommend reviewing what he's written. We're actually behind on even publishing what he's written, so I think we're expecting another 4-5 tutorials in the next month or so: www.circuitbread.com/tutorials/series/embedded-c-programming-with-the-pic18f14k50
@lerssilarsson6414
@lerssilarsson6414 Год назад
I've got the AVR Starter Kit somewhere... 😁
Далее
Flipping Robot vs Heavier And Heavier Objects
00:34
Просмотров 36 млн
How to get source code onto a PIC microcontroller
11:21
Electronic Basics #36: SPI and how to use it
10:31
Просмотров 336 тыс.
23 Button Control LED with EEPROM || Arduino ||
12:03
Просмотров 3,5 тыс.
using numbers in your code is bad
14:33
Просмотров 131 тыс.