arduinoProjects

Indus Cellphone – Designing Smallest Programable Cellphone (Half 2)

Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)

That is the second a part of designing the world’s smallest telephone Indus Cellphone, the place the UI is built-in with the fundamental features of the telephone. Beforehand, the Indusphone consumer interface (UI) was designed and the GSM module was examined, integrating it with the IndusBoard coin to advance the design. This section combines the UI with such features as contacts and calculator. The connections established partially 1, printed in EFY’s October challenge, stay unchanged. The main target now shifts to software program and UI integration for the IndusBoard telephone.

The preliminary step includes integrating basic features like dialling a quantity, making calls, checking name standing, dealing with incoming calls, and displaying the idle display throughout the beforehand designed UI. Fig. 1 illustrates the IndusBoard telephone.

Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 1: IndusBoard telephone

Integrating the calling system in Indus Cellphone

Within the code, the GSM name library and the TFT_eSPI libraries mix right into a single codebase. An idle display is created to watch incoming calls, battery standing, and sign energy in a steady loop. When a name is available in, the UI transitions to show the ‘attend’ and ‘end’ buttons. The perform to attend the decision is activated when the attend button is touched on the UI. The code checks the UI enter; if the enter is ‘attend’ or ‘end,’ it navigates to the corresponding display and executes the suitable perform utilizing the `name.reply();` and `name.hangup();` instructions. Fig. 2 offers a code snippet for TFT_eSPI, whereas Fig. 3 depicts the preliminary idle display code, which checks for incoming calls, community connectivity, and battery ranges.

– Commercial –

Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 2: Code snippet for TFT_eSPI
Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 3: Preliminary idle display code checking for incoming calls, community, and battery ranges

Fig. 4 presents the code snippet for verifying UI enter and incorporating performance for name attendance and hang-up primarily based on contact enter. Equally, the UI for dialling numbers and making calls is seamlessly built-in. Fig. 5 showcases the Indusphone dial pad UI.

Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 4: Code snippet for UI verification
Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 5: Indusphone dial pad UI

Fig. 6 illustrates the MIC and speaker reference to the GSM module. As soon as the perform for attending or hanging up a name is initiated, the GSM module independently manages the receiver. If a quantity is dialled or a name is attended, the sound transmits by means of the small-sized SMD speaker linked to the GSM module, whereas voice enter is captured from the SMD microphone. Confer with Fig. 6 for particulars.

– Commercial –

Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 6: MIC and speaker reference to GSM module

Designing app

Subsequent, the app is designed, incorporating primary options, comparable to contacts, phonebook, timer, video games, and calculator. A further UI display named ‘App’ is created, together with sub-UIs for every function. These invoke the mandatory features and execute the corresponding packages whereas monitoring incoming calls within the background by means of threading duties.

The App house display shows a listing of put in functions, permitting customers to pick the specified app by way of contact inputs from the contact panel. For contacts, deciding on the related app triggers the interior command `AT+CPBR=1`, which retrieves and shows telephone numbers and names on the display. Equally, deciding on the calculator navigates to the following display, invoking the calculator app. Fig. 7 reveals the App house display UI code, Fig. 8 presents the contact enter code, and Fig. 9 shows the contacts code.

Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 7: App house display UI code
Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 8: Contact enter code
Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 9: Contacts code
Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 10: Show of app options on the display
Indus Cellphone - Designing Smallest Programable Cellphone (Half 2)
Fig. 11: App calculator display UI code

Designing calculator app

For the calculator app design, the identical technique because the show is employed. Nevertheless, as a substitute of utilizing the `name.make` perform, a customized perform performs calculations primarily based on consumer enter and shows the outcomes. The calculator UI options contact buttons for numerical and arithmetic perform symbols. On the high of the display, in inexperienced, the enter and outcomes of the calculations are introduced. The code integrates two features: one which handles contact enter and one other that shows the UI. The contact enter handler prompts UI actions in response to consumer enter, whereas a separate perform known as `calculate` performs the calculations and shows the outcomes on the telephone display. Fig. 11 presents the app calculator display UI code.

EFY word. Additional elements might be printed in a coming challenge, detailing upgrades to the telephone with 4G LTE capabilities and extra functionalities.

Bonus. You’ll be able to watch the video of the tutorial of this DIY mission at https://www.electronicsforu.com/videos-slideshows/constructing-
indusphone-part-2


Ashwini Kumar Sinha, an IoT and AI fanatic, is a Tech Journalist at EFY.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button