Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new FAQs added #1951

Merged
merged 1 commit into from
Aug 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions app/src/main/java/io/pslab/fragment/FAQFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -23,14 +25,13 @@ public static FAQFragment newInstance() {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

questions = new String[]{getString(R.string.faq_question1), getString(R.string.faq_question2), getString(R.string.faq_question3), getString(R.string.faq_question4)};
questions = getResources().getStringArray(R.array.faq_questions);

answers = new String[][]{
{getString(R.string.faq_answer1)},
{getString(R.string.faq_answer2)},
{getString(R.string.faq_answer3)},
{getString(R.string.faq_answer4)}
};
String[] ans = getResources().getStringArray(R.array.faq_answers);
answers = new String[ans.length][];
for (int i = 0; i < ans.length; i++) {
answers[i] = new String[]{ans[i]};
}
}

@Override
Expand Down Expand Up @@ -113,7 +114,9 @@ public View getChildView(int questionPosition, final int childPosition, boolean
holder = (ViewHolder) v.getTag();
}

holder.text.setText(getChild(questionPosition, childPosition).toString());
holder.text.setClickable(true);
holder.text.setMovementMethod(LinkMovementMethod.getInstance());
holder.text.setText(Html.fromHtml(getChild(questionPosition, childPosition).toString(), Html.FROM_HTML_MODE_COMPACT));

return v;
}
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/list_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/faq_answer_margin"
android:justificationMode="inter_word"
android:paddingBottom="@dimen/list_item_padding"
android:paddingLeft="@dimen/text_padding_top"
android:paddingRight="@dimen/text_padding_top"
Expand Down
40 changes: 32 additions & 8 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -821,16 +821,40 @@
<string name="gen_pwm_text">Similarly, to produce four different PWM signal</string>

<string name="question">Q:</string>
<string name="faq_question1">How can I use this application?</string>
<string name="faq_question2">What are the experiments I can perform?</string>
<string name="faq_question3">Where can I find the schematic for connections of the instruments?</string>
<string name="faq_question4">Can I submit a change request for a particular instrument? If so, how?</string>
<string-array name="faq_questions">
<item>What is Pocket Science Lab? What can I do with it?</item>
<item>Where can I buy a Pocket Science Lab?</item>
<item>Where can I download the Android App for Pocket Science Lab?</item>
<item>Where can I download the desktop app for Pocket Science Lab for Windows, Linux and Mac?</item>
<item>Do you have an iOS app for Apple devices?</item>
<item>How can I connect to the device? What kind of USB cable do I need? What is an OTG USB cable?</item>
<item>I found a bug in one of your apps or hardware. What to do? Where should I report it?</item>
<item>Can I record or save data in the apps and export or import it?</item>
<item>My Android phone already has some sensors, can I use them with the PSLab app as well?</item>
<item>Which external sensors can I use with a PSLab device and the apps? Which ones are compatible?</item>
<item>How can I use the Pocket Science Lab as an independent data logger without the phone or desktop connected?</item>
<item>It is cool, that PSLab is Open Hardware! Where can I find the schematics and parts list of Pocket Science Lab?</item>
<item>Who develops PSLab? When did you start it? What is the story behind it?</item>
<item>I found a mistake on the website, where can I submit the issue?</item>
</string-array>

<string name="answer">A:</string>
<string name="faq_answer1">Each instrument includes a bottomsheet guide which gets open when you slide up from the bottom of your screen. It includes all the necessary details to connect the device along a brief guide to use it.</string>
<string name="faq_answer2">The goal of PSLab is to create an Open Source hardware device (open on all layers) that can be used for experiments by teachers, students and citizen scientists. Our tiny pocket lab provides an array of sensors for doing science and engineering experiments. It provides functions of numerous measurement devices including an oscilloscope, a waveform generator, a frequency counter, a programmable voltage, current source and as a data logger. Hence, you can perform all kind of experiments using these devices.</string>
<string name="faq_answer3">The bottomsheet guide implemented in each instrument has all the schematics for the connection of the device.</string>
<string name="faq_answer4">You can submit your reviews, feature requests and feedback through our Feedback and Issues page.</string>
<string-array name="faq_answers">
<item>Pocket Science Lab (PSLab) is a small USB powered hardware board that can be used for measurements and experiments. It works as an extension for Android phones or PCs. PSLab comes with a built-in Oscilloscope, Multimeter, Wave Generator, Logic Analyzer, Power Source, and many more instruments. It can also be used as a robotics control app. And, we are constantly adding more digital instruments. PSLab is many devices in one. Simply connect two wires to the relevant pins (description is on the back of the PSLab board) and start measuring. You can use our Open Source Android or desktop app to view and collect the data. You can also plug in hundreds of compatible I²C standard sensors to the PSLab pin slots. It works without the need for programming. So, what experiments you do is just limited to your imagination!</item>
<item>There is an overview page for shops where you can buy a Pocket Science Lab device in different regions on the &lt;a href = \"https://pslab.io/shop/\"&gt;website at https://pslab.io/shop/&lt;/a&gt;.</item>
<item>The app can be downloaded from &lt;a href = \"https://f-droid.org/en/packages/io.pslab/\"&gt;F-Droid&lt;/a&gt; or &lt;a href = \"https://play.google.com/store/apps/details?id=io.pslab\"&gt;Play Store&lt;/a&gt;. Simply click on the links to be directed over!</item>
<item>We are developing a desktop app for Windows, Linux and Mac in &lt;a href = \"https://github.com/fossasia/pslab-desktop/tree/install\"&gt;our desktop Git repository. You can find it in the install branch of the project here&lt;/a&gt;. The app is still under development. We are using technologies like Electron and Python, that work on all platforms. However, to make the final installer work everywhere requires some tweaks and improvements here and there. So, please expect some glitches. You can use the tracker in the repository to submit issues, bugs and feature requests.</item>
<item>Unfortunately Apple has tight restrictions and controls users in a way that prevents them to connect other hardware to their own Apple devices. Many people argue that this is against the freedom of users. The majority of hardware producers are not able to provide options to connect their products with Apple devices. Apple in many cases simply does not permit non-Apple products to be connected with its phones, pads and other hardware. It is only sometimes possible after a long and expensive process, but even if we would try to go through such a process it is not sure, that it would be possible to get Apple’s cooperation to connect a Pocket Science Lab. Due to Apple’s restrictive policies and proprietary approach that restricts the freedom of users of Apple products we are not currently able to provide an iOS app. The community regularly discusses new approaches, but unfortunately we have not found a solution yet. Apple does not have an interest to support users due to its main objective of profit generation instead of allowing users to use their devices in a way that they want. Apple’s behavior is seen by some in a way that it restricts basic human rights and the freedom of people who happen to be users of Apple products.</item>
<item>To connect to the device you need an OTG USB cable (&lt;a href = \"https://en.wikipedia.org/wiki/USB_On-The-Go\"&gt;OTG = On the go&lt;/a&gt;) which is a USB cable that allows connected devices to switch back and forth between the roles of host and device. &lt;u&gt;USB cables that are not OTG compatible will NOT work&lt;/u&gt;. It is also possible to extend the PSLab with an ESP WiFi chip or a Bluetooth chip and communicate through these gateways using the Android app. You can refer to the &lt;a href = \"https://github.com/fossasia/pslab-hardware\"&gt;hardware developer documentation and code on GitHub for more details here&lt;/a&gt;.</item>
<item>We have issue trackers in all our projects. They are currently hosted on GitHub. In order to submit a bug or feature request you need to login to the service. &lt;a href = \"https://github.com/fossasia?utf8=%E2%9C%93&amp;q=pslab\"&gt;A list of our PSLab repositories is here&lt;/a&gt; (scroll down a bit, when you access this page).</item>
<item>Yes, we have implemented a record and play function or a way to save and open configurations in the instruments on the Android and desktop app. Data you record can be imported into the apps and viewed. This feature is still under heavy development, but works well in most places. You can find it in the top bar of the apps. There are buttons to record, play, save and open data.</item>
<item>Yes, absolutely. You can install the PSLab Android app (&lt;a href = \"https://play.google.com/store/apps/details?id=io.pslab\"&gt;Play Store&lt;/a&gt;, &lt;a href = \"https://f-droid.org/en/packages/io.pslab/\"&gt;Fdroid&lt;/a&gt;) on your phone and use it with devices such as Luxmeter or Compass. We are adding support for more built-in sensors step by step.</item>
<item>In our apps we use the industry standard I²C (&lt;a href = \"https://en.wikipedia.org/wiki/I%C2%B2C\"&gt;Wikipedia&lt;/a&gt;). You can get the data from sensors that are connected to the device through the USB port using an OTG USB cable (OTG = On the go) which is a USB cable that allows connected devices to switch back and forth between the roles of host and device. For the transfer we use UART (universal asynchronous receiver-transmitter, &lt;a href = \"https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter\"&gt;Wikipedia&lt;/a&gt;). Many sensors can be used with specific instruments, e.g. Barometer, Thermometer, Gyroscope etc. You can access the configuration for sensors in the instrument settings on the top right burger menu of each instrument. All sensors using the I²C standard are compatible with the device. There are connection pins for analogue and digital sensors. You find the description of the pins on the back of the device. Even if there is no specific instrument in one of our apps yet, you can still view and store the raw data using the Oscilloscope instrument component. There is &lt;a href = \"https://pslab.io/sensors/\"&gt;a page with a list of recommended sensors on the website&lt;/a&gt;.</item>
<item>We have already implemented this functionality, however it is still in prototype stage. You can generate a config file in the Android app and transfer it to the PSLab device (you might have to update the firmware that you find on our Github org). You can power the PSLab device with an USB battery and it can collect data independently of the app. Once you connect the app you can download the data collected. Future versions of the device will come with a SD card to store the data locally as well. At the moment there are still limits to using this feature, but we are continuously working on it 🙂</item>
<item>The PSLab hardware is developed using &lt;a href = \"http://www.kicad-pcb.org/\"&gt;KiCad&lt;/a&gt;. The software can generate all kinds of formats and components lists. You can find the schematics and source files in the &lt;a href = \"https://github.com/fossasia/pslab-hardware\"&gt;hardware Git repository here&lt;/a&gt;.</item>
<item>PSLab is developed with a community at &lt;a href = \"https://fossasia.org/\"&gt;FOSSASIA&lt;/a&gt;. There are over 100 developers who have contributed to the project across different repositories. The project was started after Praveen Kumar, a physics teacher from India, introduced the idea of an open physics lab device inspired by the ExpEYES project at the FOSSASIA Summit in Cambodia 2014. He helped to get the project moving forward and worked with early contributors on the software components. The Open Hardware board was released in 2017 as part of a GSoC project by Jithin B P who used the ExpEYES boards he developed earlier as a basis to create the first version of PSLab. In the following years hardware components were updated, the size and design was adjusted resulting in much lower production costs and many features were added in the firmware. An Android app was developed from scratch and most of the desktop app re-implemented with a new cross-platform Electron frontend. &lt;a href = \"https://twitter.com/Cloudypadmal\"&gt;Padmal M&lt;/a&gt; from Sri Lanka is leading the tech team since 2018 and defines the roadmap together with &lt;a href = \"https://twitter.com/mariobehling\">Mario Behling&lt;/a&gt;, core developers and contributors from the wider community. Since 2019 FOSSASIA produces batches of the boards in large quantities. It is our goal to set an example as an Open Hardware project, to make it commercially sustainable and inspire others to create Open Hardware and Free and Open Source software.</item>
<item>We use issue trackers for most of our work. You can submit &lt;a href = \"https://github.com/fossasia/pslab.io/issues\"&gt;issues you find regarding the website on our issue tracker here&lt;/a&gt;.</item>
</string-array>

<string name="date_of_recording">DATE OF RECORDING</string>
<string name="time_of_recording">TIME OF RECORDING</string>
Expand Down