Showing posts with label Delphi. Show all posts
Showing posts with label Delphi. Show all posts

Tuesday, November 10, 2020

Amazing Home automation system with STM32F103 microcontroller Part 1

Amazing Home automation system with STM32F103 microcontroller

Visit my Youtube channnels :  Electro_Magic ; Practical Tips  ; Delphi practical school             



Amazing Home automation


This is ongoing project of building Home automation system ( smart home system ), which will for the start have measurement of temperature and humidity.

It will consist of number of parts ( number of blog posts ).

It is planed to work with micro controller STM32F103C8T6



STM32F103C8T6 microcontroller



 and 3.5" TFT LCD.



3.5" TFT LCD



Next step will be to control relays for ceiling fan, etc.

Next will be to add ESP8266 to have connection to the internet, so the system can be controlled remotely.

Till now I have managed to make a printed circuit board.



Home automation board
Home automation board bottom


Home automation board
Home automation board top


Not really nice to look at, but it is working, and working from the first attempt :-)

The PCB is designed in EasyEDA, and made with toner transfer method 




Except headers for STM32 and TFT LCD, I have also added 3.3V and 5.0V linear regulators.
Beside this, there is also part with MC34063 as a buck converter, which is in front of small linear regulators.
This part is made with intention to connect this device to external power source of 12V.


Of course, everything is programmed using Arduino IDE and STM32duino board.

For measuring temperature and humidity we use DHT11 sensor, which measures temperature and also humidity and uses just three wires, plus, ground and signal.

DHT11 sensor



 






Monday, April 9, 2018

Compress files and folders to zip file with Delphi (Tip for 10 )


Visit my Youtube channnels :  Electro_Magic ; Practical Tips  ; Delphi practical school             

This is an example of zipping ( compressing ) files and folders with Delphi using "FWZip" component which can be downloaded from following link :


https://github.com/AlexanderBagel/FWZip

In this video you can see full procedure of this example :


And following is full source of this example :


Wednesday, January 3, 2018

Export Image To PDF with Delphi (Tip for 10 )


Visit my Youtube channnels :  Electro_Magic ; Practical Tips  ; Delphi practical school

This is example how one can export image from Delphi application to PDF file, using open source library SynPDF.


In the following video full procedure is described



Library can be downloaded from :
https://github.com/synopse/SynPDF

Following is full source code :
Edited 10.01.2018 : added code for the Form after main code.

Wednesday, December 13, 2017

Draw shapes with Delphi (Tip for 10 )


In this tutorial you can learn how to draw shapes with Delphi.

This is actually example of how you can create your own Paint application.

In the video below you can see complete procedure of this tutorial.



Also, following is full source code :

Wednesday, November 29, 2017

Get Base File Info (Tip for 10 )


Here you can see example of getting basic file information.

Complete procedure of making this example program can be seen in the following video.



And following is full source code that you can use to test this example by yourself.


Monday, October 30, 2017

Get Computer Drives - Delphi Tutorial (Tip for 10 )


In this example you can see how we can get list of Computer Drives with icons and labels.

 First, check this video with details for this example .




 And of course following is the source code of this example :

Friday, October 13, 2017

Web browser Delphi Example (Tip for 10 )


As you will see, it is possible to create simple Web browser very quickly using Delphi and component TWebBrowser , which encapsulates Internet Explorer ActiveX component.

In this video you can see all the details of creating such web browser :

And of course following is the source code for this example :

Monday, September 25, 2017

Music Player using BASS library Delphi tutorial (Tip for 10 )


Delphi mp3 music player

Example how to create mp3 player with Delphi and BASS library.

BASS library can be downloaded from :
http://www.un4seen.com/

In this video you can see in detail how to create such mp3 player.


 
And following is source code of this example.

Tuesday, May 9, 2017

Video Player using Direct Show DSPack component for Delphi (Tip for 10 )





- Example of media player created with Delphi and DSPack components.

- You can download component from: https://github.com/ms301/dspack

- You should also download ffdshow from the following location :
https://sourceforge.net/projects/ffdshow-tryout/?source=directory

- Detailed procedure of video player creation is shown in the following video :

Monday, April 17, 2017

VirtualStringTree as Grid - Delphi tutorial (Tip for 10 )


In this example you can learn how to use Virtualstringtree from GemSoft as a Grid.


This component can be used as a regular tree view but also as string grid,so it can replace regular stringgrid and dbgrid, but with much higher speed.
Not to mention customization.

Thursday, February 2, 2017

Form in a DLL file Delphi tutorials (Tip for 10 )




In this example you can see how to create dll file with form in it , and call this form from host application.



Following is the source code :


Friday, December 30, 2016

Media Player - Delphi tutorial (Tip for 10 )





Delphi example showing how to create Media Player.
Here you can see how to create Media Player with which you can play music and video files.
It is quite simple and easy way to do this with Delphi.

Sunday, December 18, 2016

Delphi tutorial - Tabbed interface (Tip for 10 )

Delphi example showing how to create tabbed interface.

Here you can see how to dynamically create Memo and Picture and put them in Active sheet ( active tab ).

Also some actions with tabs, add, edit caption, move, delete ...

Friday, December 2, 2016

Delphi tutorial - Use external fonts (Tip for 10 )

In this example I will show you how to use external fonts in your application, without installing font.
Following video shows details about creating this example, and below this video you can find source code for showed example.

Monday, November 14, 2016

Sunday, September 25, 2016

Tutorial by Kobyx Kitchen bar

Tutorial by Kobyx   Kitchen bar

Tutorial on creating kitchen bar by yourself.








Saturday, September 24, 2016

Delphi tutorial MS Access database with KADao

Delphi tutorial MS Access database with KADao

This is Delphi Tutorial about creating and manipulating MS Access database
with KADAo component ( http://www.kadao.dir.bg/ ) ,
and as usual you can find here source code for this app,
and also exe files at address : https://drive.google.com/open?id=0B_njK7HczCjDWkdtbTVseExyYW8

Monday, June 27, 2016

Delphi tutorial Client server application

 Delphi tutorial   Client server application

This is Delphi Tutorial about client-server application.

Tuesday, May 3, 2016

Delphi Tutorial Timer

In this video you can learn how to work with Timer in Delphi.
You can learn how to manipulate with components using timer.

example application:https://drive.google.com/open?id=0B_njK7HczCjDOEpVMER4aFctSDQ

Here is also code used in this video :