Skip to main content


Showing posts with the label Photo

Building,Flashing and Debugging Embedded Rust Program

Building,Flashing and Debugging Embedded Rust Program Building Program Cargo provides 4 different targets that cover the different processor families within that architecture. thumbv6m-none-eabi , for the Cortex-M0 and Cortex-M1 processors thumbv7m-none-eabi , for the Cortex-M3 processor thumbv7em-none-eabi , for the Cortex-M4 and Cortex-M7 processors thumbv7em-none-eabihf , for the Cortex-M4F and Cortex-M7F processors The one we are interested in is last one (i.e. thumbv7em-none-eabihf) because F3 has Cortex-M4F processor in it.    Before cross compiling we have to download pre-compiled version of the standard library. For that we have to run: $ rustup target add thumbv7em-none-eabihf We have to download it once after that it will be updated automatically whenever we update rust tool chain.   All set, we can now compile our program for whatever target we are compiling, using following command: $ cargo build --target thumbv7em-none-eabihf Flashing Program Flashing => Moving prog

What is Drone Technology?

What is Drone Technology? Introduction The drone is an unmanned aerial vehicle (UAV). This is an airplane deprived of a human pilot on board. It comprises a UAV having a ground-based controller. Also, it has included a system of communications between the two. The flight of UAVs may run under remote control by a human operator. It can operate separately by onboard computers mentioned as an autopilot. Uses Drones created typically in military applications. Their use is quickly finding many more applications such as aerial photography, agriculture, policing product deliveries, and surveillance, science, infrastructure inspections, smuggling, and drone racing. Now, Drones are used in a wide range of neutral roles. Following are the major applications of drones in civilian sectors. Search and rescue Surveillance Traffic monitoring Weather monitoring and firefighting To individual drones and business drone-based photography in addition to videography, Agriculture and even distr

What's the serial communication in Rust?

 What's the serial communication in Rust? Description It's a communication mechanism that takes place using the asynchronous protocol. Two devices exchange data serially in this communication 1 bit at a time These 2 devices exchange data using 2 shared data lines and 1 common ground. The protocol is asynchronous because none of the shared lines carries a clock. But both (transmitter and receiver) have to agree prior to the communication that how fast data will be sent/received. This protocol allows duplex communication which means both can send data simultaneously. Why we need this protocol? What's the use-case? We are using this protocol to exchange data between MCU and host computers for example our laptops. Unlike ITM protocol, this protocol lets us send data from laptop to MCU Now a question arises. How fast we may send data using this protocol? This protocol works with frames Each frame has 1 start bit, 1-2 stop bits, and 5-9 data bits Speed of protocol is known as

What Are Clocks & Timers In Rust?

 What Are Clocks & Timers In Rust? What is a Clock? Computers usage the inner clock to synchronize all of their calculations. The clock confirms that the many circuits inside a computer work together at the same time. The clock, in general, states to a microchip. That microchip controls the timing and speed of all computer functions. In the chip is a crystal. That chip vibrates at an exact frequency when electricity is applied. The direct time any computer is accomplished of acting is one clock. It may be called one vibration of the clock chip. Clock speed is dignified by how many ticks per second the clock makes. The unit of a dimension called a hertz (Hz). The speed of a computer processor is measured in clock speed, for instance, 1 MHz is one million cycles, or vibrations, a second. Similarly, 2 GHz is two billion cycles, or vibrations, a second. For loop isn’t good for creating delays inline(never)] fn delay(tim6: &tim6::RegisterBlock, ms: u16) { for _ in 0..1_000

Industry 4.0 – Google Optic Fiber Cable

 Industry 4.0 – Google Optic Fiber Cable Introduction Globally there are 378 undersea optic fiber cables connecting various continents. In 2019 Google has installed its dedicated cable from the USA to Europe which is the highest capacity cable in the world. Description The cable has 24 strands & is n amed "Dunant" ~ it is named after the founder of the Red Cross - Henry Dunant. The cable length is 6,000 km. It's a private Google cable & is a part of Google’s network carrying internal data & synchronizing Gmail, YouTube, cloud data & other services in real-time between all Google data centers in the USA & Europe . We can download 250 terabits per second speed 1 terabyte HDD data in 30 milliseconds. Google has planned to lay more than 3,000 miles of the transatlantic undersea cable by 2022. The tech gigantic has declared its new Grace Hopper undersea cable project. The Grace Hopper cable would connect New York to Bude in the UK and Bilba

What Are Pandas Objects?

 What Are Pandas Objects? Description Pandas objects may be believed as improved versions of NumPy structured arrays. The rows and columns are recognized with labels rather than simple integer indices in pandas objects. A set of common mathematical and statistical methods is equipped with them. On top of the basic data structures, the pandas offer a host of useful tools, methods, and functionality. There are three fundamental Pandas data structures; The Series DataFrame Index We would start our code sessions with the standard NumPy and Pandas imports. import numpy as np import pandas as pd Maximum mathematical and statistical methods fall into the category of reductions. They also belong to summary statistics and methods. Those methods remove a single value from a Series or a Series of values from the rows or columns of a DataFrame. They are all built from the ground up to eliminate missing data, matched with the equal methods of vanilla NumPy arrays. Pandas Series

How to create tables for Websites?

 How to create tables for Websites? There are many types of information that we need to be displayed in a grid or table. For instance:  sports results stock reports train timetables We need to think in terms of a grid made up of rows and columns (a bit like a spreadsheet) when representing information in a table. What's a Table? The information in a grid format is being represented as a Table. There are several examples of tables comprising financial reports, TV schedules, and sports results. Grids permit us to understand complex data by referencing information on two axes. Every block in the grid is referred to as a table cell. A table is written out row by row in HTML. Basic Table Structure  <table> The <table> element is used to create a table. The table contents are written out row by row. <tr>   We indicate the start of each row using the opening <tr> tag. The tr stands for table row. This is followed by one or more <td> elements (one for each ce