Taillieu.Info

More Than a Hobby..

Arduino R3 Multifunctional Expansion Board Shield

Multi-function Shield

 
 
The Multi-function Shield (HCARDU0085) designed for Arduino Uno / Leonardo board has a large range of features which makes it ideal for experiments, learning and advanced projects development.
 
Besides the feature rich range of components fitted to the shield, there are also a range of expansion headers for convenient interfacing of external modules and components. The shield includes R3 type headers for easy connection to Arduino boards.

Note:
This shield includes a header for attaching an IR reciver (U4-IR-2). The pinout order is not suitable for directly connecting a SFH506-38. However the order is compatible with 1838B Infrared IR receiver (HCSENS0014).
Please always check the schematic before connecting external components.
 
Features
  • An LED display module (four-digit, seven-segment)
  • Two serial LED display driver ICs(74HC595)
  • Four LEDs
  • A multi-turn trimpot (10KOhm)
  • Three pushbuttons
  • A piezo-buzzer
  • A port for DS18B20 temperature sensor
  • A port for TSOP1838 infrared receiver module
  • A APC220 wireless module interface (serial/UART interface)
  • A reset button
 

Pin Layout
  • Serial LED display driver (74HC595) - Latch 4, Clock 7, Data 8
  • Four LEDs - Pin 10,11,12,13
  • Trimpot (10KOhm)-Pin A0
  • Three pushbuttons - Pin A1,A2,A3
  • Piezo-buzzer - Pin 3 (digital on/off)
  • DS18B20/LM35 temperature sensor - Pin A4
  • Infrared receiver module (remote control) - Pin 2
  • Header for APC220 shield - Gnd, 5V , 0, 1 (rx/tx)
  • Reset pushbutton - Gnd
  • Free pins header (PWM) - 5, 6, 9, A5

Circuit diagram
 
 
Looking at the schematic, it looks like using the DS18B20 temperature sensor (and the infrared receiver module) requires a bit of research. As indicated in the top silkscreen layout, the flat (labeled) side of the temperature sensor must face the bottom side of the Multi-function shield fronting the three pushbuttons. Also, the legend “U5-18b20-LM35-A4” has an arrow pointing up toward the middle pin (A4) of the temperature sensor header (GND on the left, DQ in the middle, and 5 V on the right). The jumper J1 feeds 5 V to the middle pin DQ through a 10K resistor (pull-up configuration). Similarly, pin notation for the infrared receiver module is OUT (D2) - GND - 5V.

Some Pictures:

  

Unbrick Qualcomm mobiles with Step-by-step guide.

Analyzing the Problem

In Qualcomm NEW firmware (not the HLOS part, but NON-Hlos, SBL1, TZ, HYP, RPM, and Aboot), especially ARMv8-A, Qualcomm diminished the famous “Qualcomm HS-USB Diagnostics 9006”, and introduce two types of “Qualcomm HS-USB QDLoader 9008” (source: fybon article ). So, before we proceed with the guide, we should analyse the phone first, on which 9008 mode your phone is in. To do this, follow these steps below:

Make your PC ready for the big day:

  • Please turn off internet connections.
  • Remove your mobile from PC or Laptops.
  • Install the latest “.net Framework” for your Windows.
  • Uninstall all the driver related to mobile, as well as any Qualcomm driver if you have install any. Uninstall them through Device Manager FIRST, then program manager. Here I used a software called “REVOUninstaller” to remove completely the driver softwares and Device Remover to completely remove installed unnecessary device.

Then run “CMD” or “Windows Terminal” as administrator and type:

bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS

bcdedit -set TESTSIGNING ON

Restart your PC or Laptops, and you should see this watermark at the bottom right of your desktop, just like the pic below”
attachmentDownload QualcommDrv.zip from here, extract to an empty folder, then open the folder according to your Windows type (x64 or x86) and double click dpinst64.exe (if you have 64-bit Windows) to install the Qualcomm driver

  • Now it is safe to connect your Qualcomm Mobile to PC or laptop (I connected it in USB2 port). BUT BEFORE YOU CONNECT YOUR Mobile, REMEMBER TO UNPLUG YOUR BATTERY FOR FIVE SECS, REPLUG IT, AND CONNECT YOUR Mobile WITHOUT PRESSING ANY OF ITS BUTTONS. Your phone should now being detected as “Qualcomm HS-USB QDLoader 9008” and the driver version 2.0.8.7 (please check it through Windows’ “Device Manager”)

Analyzing the Process:

If you were just messing with system image, boot image, system’s framework or other things that does not related to Qualcomm’s stuff (modem-NON-HLOS.bin, aboot-emmc_appsboot.mbn, sbl1, hyp, tz, rpm partition, for example installing sound patch, etc, you possibly will enter the new 9008 mode, which is a combination of the old “Qualcomm HS-USB Diagnostics 9006” and “Qualcomm HS-USB QDLoader 9008”. When you first brick the phone into this mode, you would experience such symptoms below:

  1. The LED charging indicator near the phone speaker will light red.
  2. Your phone will vibrate endlessly, and this vibration will end only if you disconnect your phone from your PC or laptop and unplug the battery.

If you open Windows’ Device Manager, you’ll see “Qualcomm HS-USB QDLoader 9008” under PORTS (COM & LPT) or “QHUSB_BULK” under Other devices, and “Qualcomm MMC Storage USB Device” under Disk drives, similar to the pics below (NOTICE THAT RED BOX IN PIC):
attachmenthttps://www.droidsavvy.com/wp-content/uploads/2015/11/attachment-300x157.png 300w, https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment-510x267.png 510w" sizes="(max-width: 669px) 100vw, 669px" style="box-sizing: border-box; vertical-align: middle; max-width: 100%; height: auto; border: 0px; clear: both; display: block; margin: 0px auto 30px;">OR

attachment2https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment2-177x300.png 177w, https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment2-248x420.png 248w" sizes="(max-width: 308px) 100vw, 308px" style="box-sizing: border-box; vertical-align: middle; max-width: 100%; height: auto; border: 0px; clear: both; display: block; margin: 0px auto 30px;">

However, if you messed with your Mobile’s Qualcomm’s partition playing with NON-HLOS.bin, emmc_appsboot.mbn, sbl1.mbn, hyp.mbn, tz.mbn, rpm.mbn, or by other mean messing the whole Qualcomm’s eMMC partition, such as by using this zip I made while your Mobile is in Fastboot, then you will most likely go into the OLD “Qualcomm HS-USB QDLoader 9008” mode. You will find symptoms similar to below:

  1. The phone charging indicator would not light if you connect your mobile with PC or Laptop.

Device Manager only listed “Qualcomm HS-USB QDLoader 9008” under PORTS (COM & LPT) or “QHUSB_BULK” under Other devices, but no “Qualcomm MMC Storage USB Device” under Disk drives, similar to pic below:

attachment3https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment3-300x218.png 300w, https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment3-510x371.png 510w, https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment3-324x235.png 324w, https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment3-578x420.png 578w" sizes="(max-width: 640px) 100vw, 640px" style="box-sizing: border-box; vertical-align: middle; max-width: 100%; height: auto; border: 0px; clear: both; display: block; margin: 0px auto 30px;">

So, now you need to analyse your Mobile, whether it is in the OLD ‘9008″ or NEW “9008” mode, as the procedure to revive your beloved mobile will be different.

Sponsored Links

Guide, if you are NEW “Qualcomm HS-USB QDLoader 9008” MODE

If you are that lucky person, who is stuck in the NEW “Qualcomm HS-USB QDLoader 9008” mode, to be honest, the steps to be taken are a lot easier. However, you need somebody having the same phone as yours to upload your device’s complete eMMC image for you. To get such image, you could ask your friend to do these steps (root the phone first):

  1. Format your external MicroSD card with “exfat” system file, and the size of this SD card should be morethan 16 GB , which is the size of the whole partition.
  2. Do a full factory reset, meaning wipe your cache, data, and internal storage using either CWM, TWRP, or PhillzTouch.
  3. Insert the SD card to your phone and connect your mobile with ADB, type:
adb shell 
su
dd if=/dev/block/mmcblk0 of=/storage/sdcard1/backup.img bs=512 count=30535646

The size of the “backup.img” is around 16 GB, However, if you compressed it, it would be around 2 GB.

Now, if you have the backup.img in your hand, you can do these steps:

  1. Download partition tools from the net, I recommend you to use “Minitool Partition Wizard”.
  2. Download “HDD Raw Copy Tool”, it is a free tool that can copy your “backup.img” to your Mobile’s eMMC sector per sector.
  3. Now connect your phone, remember to UNPLUG YOUR BATTERY FOR FIVE SECS, REPLUG IT, AND CONNECT YOUR Mobile WITHOUT PRESSING ANY OF ITS BUTTONS.
  4. FROM NOW ON DON’T YOU EVER DISCONNECT THE PHONE FROM YOUR PC OR LAPTOPS.
  5. Open “Minitool” and you will see that your phone has 29 partitions in total, similar to the pic below (this pic was taken from Windows’ “Disk Management Tool” just to describe Qualcomm’s partitions):attachment4https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment4-300x157.png 300w, https://www.droidsavvy.com/wp-content/uploads/2015/11/attachment4-510x267.png 510w" sizes="(max-width: 607px) 100vw, 607px" style="box-sizing: border-box; vertical-align: middle; max-width: 100%; height: auto; border: 0px; clear: both; display: block; margin: 0px auto 30px;">
  6. Delete all 29 partitions and click apply (remember don’t remove your phone while “Minitool” is completing the process).
  7. If all process finished successfully, open “HDD Raw Copy Tool”, and you’ll see things similar to this:

Choose your “backup.img” and click “Continue >>>>>>”.
raw parthttps://www.droidsavvy.com/wp-content/uploads/2015/11/raw-part-300x149.png 300w, https://www.droidsavvy.com/wp-content/uploads/2015/11/raw-part-510x253.png 510w, https://www.droidsavvy.com/wp-content/uploads/2015/11/raw-part-324x160.png 324w" sizes="(max-width: 603px) 100vw, 603px" style="box-sizing: border-box; vertical-align: middle; max-width: 100%; height: auto; border: 0px; clear: both; display: block; margin: 0px auto 30px;">Put a highlight on “Qualcomm MMC Storage USB Device” and click “Continue”

raw part 1https://www.droidsavvy.com/wp-content/uploads/2015/11/raw-part-1-300x149.png 300w, https://www.droidsavvy.com/wp-content/uploads/2015/11/raw-part-1-510x253.png 510w, https://www.droidsavvy.com/wp-content/uploads/2015/11/raw-part-1-324x160.png 324w" sizes="(max-width: 603px) 100vw, 603px" style="box-sizing: border-box; vertical-align: middle; max-width: 100%; height: auto; border: 0px; clear: both; display: block; margin: 0px auto 30px;">Check every things and click “START”.

raw part 3https://www.droidsavvy.com/wp-content/uploads/2015/11/raw-part-3-300x202.png 300w, https://www.droidsavvy.com/wp-content/uploads/2015/11/raw-part-3-510x343.png 510w" sizes="(max-width: 603px) 100vw, 603px" style="box-sizing: border-box; vertical-align: middle; max-width: 100%; height: auto; border: 0px; clear: both; display: block; margin: 0px auto 30px;">However, if you can’t find a good fellow, who is willing to give you the “backup.img”, then I’m afraid you have to do it the hard way, which is forcing your beloved Mobile to go to the OLD “Qualcomm HS-USB QDLoader 9008” mode. You can do this using “Minitool“:

  1. Open “Minitool” again.
  2. Delete all 29 partitions.
  3. Then choose “Create Partition” on the whole “Qualcomm MMC Storage USB Device” (making it one big 16 GB partition) as “Primary Partition” with an “ext4” file system. By the way, DON’T GIVE THE PARTITION A NAME.
  4. Click APPLY.
  5. When “Minitool” completed all the process, disconnect your Mobile from PC or Laptop, UNPLUG YOUR BATTERY FOR FIVE SECS, RE-PLUG IT, AND CONNECT YOUR Mobile WITHOUT PRESSING ANY OF ITS BUTTONS.
  6. And I have to greet you, “Welcome, now you are in the OLD ‘Qualcomm HS-USB QDLoader 9008’ mode”.

Guide on how to recover “Qualcomm HS-USB QDLoader 9008” MODE

Download “QPST 2.7 build 422 (QFIL)” from HERE and extract it to an empty folder. It has to be this version of “QPST”. Install QPST by double clicking setup.exe

  1. Download 8675_W00.zip attached with this post HERE, and extract it to an empty folder. You will get a folder called “8675_W00”, just open it.
  2. Download and Extract your Mobile stock ROM in the folder you made. ( Make Sure the ROM you download is flashable file and not a ZIP flash file)
  3. Now open QFIL from start menu
  4. Insert all the necessary file needed by “QFil”:

(1)The programmer will be prog_emmc_firehose_8936.mbn found inside the “8675_W00” folder;

(2)Use the rawprogram0.xml found inside the “8675_W00” folder;

(3)Use the patch0.xml found inside the “8675_W00” folder;

(4)Hit “Download” button.

QFILhttps://www.droidsavvy.com/wp-content/uploads/2015/11/QFIL-300x226.png 300w, https://www.droidsavvy.com/wp-content/uploads/2015/11/QFIL-510x383.png 510w, https://www.droidsavvy.com/wp-content/uploads/2015/11/QFIL-80x60.png 80w, https://www.droidsavvy.com/wp-content/uploads/2015/11/QFIL-265x198.png 265w, https://www.droidsavvy.com/wp-content/uploads/2015/11/QFIL-696x523.png 696w, https://www.droidsavvy.com/wp-content/uploads/2015/11/QFIL-559x420.png 559w" sizes="(max-width: 802px) 100vw, 802px" style="box-sizing: border-box; vertical-align: middle; max-width: 100%; height: auto; border: 0px; clear: both; display: block; margin: 0px auto 30px;">If the process you did with “QFil” finished successfully, the phone will reboot by itself.

  • After the phone rebooted, it will suffer from an endless bootloop. Don’t do anything, just disconnect it from your PC, and straight away put your phone into bootloader by pressing “volume-up” button while connecting your phone again to your PC.
  • Go to “8675_W00” folder again, and run FlashAll(AfterQFil).bat by double clicking it.
  • Your Mobile will reboot normally to stock ROM.

There you are, your mobile will finally come back to life. Let us know if this process helped you by commenting or using our social media pages.