# How to upload a Zip library with workbench

**URL:** https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811
**Category:** Libraries
**Created:** [January 12, 2023, 4:09pm UTC](https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811 "2023-01-12T16:09:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hparris3980](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@hparris3980](https://community.particle.io/u/hparris3980)
#### Post date: [January 12, 2023, 4:09pm UTC](https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811/1 "2023-01-12T16:09:02Z")

</div>

I am new to the particle ecosystem (I’ve really only used arduino before this).

I’m trying to hook up a Gravity Analog TDS sensor to a Particle Boron and I’m having trouble importing the library for it. It doesn’t seem to be in the Particle Libraries list, so I tried downloading the library from GitHub and putting the file in the src folder in the Particle workbench IDE.

[Here’s](https://github.com/DFRobot/GravityTDS/blob/master/GravityTDS.h) the link to the GitHub library.

---

<div class="post-metadata">

### Author: ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)
#### Post date: [January 12, 2023, 4:14pm UTC](https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811/2 "2023-01-12T16:14:01Z")

</div>

You’ll need to rearrange some files and create some folders within the `lib` directory in your Workbench project. It’s described [here](https://docs.particle.io/firmware/best-practices/libraries/#using-non-libraries).

You’ll probably also need to comment out `#include <EEPROM.h>` which is needed for Arduino but does not work on Particle.

---

<div class="post-metadata">

### Author: ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)
#### Post date: [January 12, 2023, 5:44pm UTC](https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811/3 "2023-01-12T17:44:19Z")

</div>

You will also need to change the `aref` voltage value from 5.0 (volts) to 3.3 using this library function:

```auto
void setAref(float value); //reference voltage on ADC, default 5.0V on Arduino UNO

```

---

<div class="post-metadata">

### Author: ![hparris3980](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@hparris3980](https://community.particle.io/u/hparris3980)
#### Post date: [January 13, 2023, 4:07am UTC](https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811/4 "2023-01-13T04:07:37Z")

</div>

Thanks for the reply. Would you be able to explain why? I hello world-ed the sensor with an uno and used 5V.

---

<div class="post-metadata">

### Author: ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)
#### Post date: [January 13, 2023, 2:30pm UTC](https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811/5 "2023-01-13T14:30:59Z")

</div>

@hparris3980, the ATMega328 used in the Uno is a 5v processor whereas the nrf52840 used in the Boron is a 3.3v part. So, you will need to power the sensor using 3.3v (for which it is rated) and define the reference voltage for the analog-to-digital (A/D) converter as 3.3v. This value is used to convert the A/D digital value into an equivalent voltage in the library.

---

<div class="post-metadata">

### Author: ![hparris3980](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@hparris3980](https://community.particle.io/u/hparris3980)
#### Post date: [January 18, 2023, 12:52am UTC](https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811/6 "2023-01-18T00:52:51Z")

</div>

Thanks so much!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/4/64635adccc35238caa19e9b553ec3e98b163d026.png) [@system](https://community.particle.io/u/system)
#### Post date: [March 19, 2023, 12:53am UTC](https://community.particle.io/t/how-to-upload-a-zip-library-with-workbench/63811/7 "2023-03-19T00:53:45Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
