This is a dynamic program for the implementation of the Restoring division Algorithm in the C. Restoring Division uses Left Shift Operations, Twos’ Compliment and Binary Addition. #include<stdio.h> #include<malloc.h> int * a, * q, * m, * mc, * c, n, d; int powr(int x, int y) { int s = 1, i; for (i = 0; i < y; i++) s = s * x; return s; } void print(int arr[], int n) { int i; for (i = 0; i < n; i++) printf(“%d “, arr[i]); } void…
Read MoreTag: Programming
RPi GPIO Programming using Arduino Web IDE
Recently Arduino has launched support for programming ARM-based SBCs by using the Arduino web editor and Raspberry Pi is one of the SBCs in the list. This video is all about the basic setup to get started with the programming of the Raspberry Pi GPIOs by using Arduino codes. The setup is pretty simple and will help you if you are more comfortable in the Arduino ecosystem as compared to python. More depth functionalities are yet to be checked. Bikash Narayan PandaDeveloper, Tinkere, a proud Dad.. love to spend…
Read MoreCRC16 using JAVA
CRC codes are numerously used for error checking purposes. So many times working around Embedded Devices you will find CRC used in different communication protocols for error detection. This piece of code will help you to generate CRC16 using provided packets in JAVA. While working on devices like Raspberry Pi which supports JAVA and industrial protocols like MODBUS which uses CRC16, this code can be used.
Read MoreFirst Look at Orange Pi Zero (The SBC with Wi-Fi and Ethernet)
What’s Orange Pi Zero ? It’s an open-source single-board computer. It can run Android 4.4, Ubuntu, Debian. It uses the AllWinner H2 SoC and has 256MB/512MB DDR3 SDRAM(256MB version is Standard version. Features: CPU H2 Quad-core Cortex-A7 H.265/HEVC 1080P. GPU ·Mali400MP2 GPU @600MHz ·Supports OpenGL ES 2.0 Memory (SDRAM) 256MB/512MB DDR3 SDRAM(Share with GPU)(256MB version is Standard version)
Read MoreSend/Receive data using BLE and MBED | BBC Microbit
This video is all about sending and receiving data between BBC Microbit and any BLE enabled smart phone. Over here I have used C/C++ (MBED) as the programming language as other language (Python/JavaScript) don’t support UART data transfer service.
Read MoreFetching data from server | Arduino/ESP8266
Arduino/ESP8266: Fetching data to Server (LOCAL and Online) using WifiClient on from the ESP8266 module using Arduino IDE. The chip first came to the attention of western makers in August 2014 with the ESP-01 module, made by a third-party manufacturer, AI-Thinker. This small module allows microcontrollers to connect to a Wi-Fi network and make simple TCP/IP connections using Hayes-style commands. However, at the time there was almost no English-language documentation on the chip and the commands it accepted.The very low price and the fact that there were very few external…
Read MoreStoring configuration data for JAVA applications
Many times it is required to store some configuration settings for your application so that it can use again and again from where it left. Or the application can start with some specific parameters. The properties file can come in handy in such requirements. First, let’s write something to the properties file. Code: import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Properties; public class App { public static void main(String[] args) { Properties prop = new Properties(); OutputStream output = null; try { …
Read MoreImage Gallery using JAVA and JAVAFX
I quite browsed internet a lot to find something to create a image gallery in JAVA but i got null out of it.So i started making my own gallery in JAVA and JAVAFX and also integrated SQL database with it so that i can keep the information about the images and my gallery can be searchable according to persons in the image or place or date taken etc.Here below i am providing the codes to make the gallery. So first of all create the following database in your local database.I…
Read More