Skip to main content

Prerequisites

Before you begin, ensure you have the following installed:
  • Python 3.11 or 3.13 (recommended versions for compatibility)
  • Visual Studio Code (or your preferred code editor)
  • pip (Python package manager)
  • Git (for cloning the repository)
This guide is optimized for Ubuntu/Linux systems. Windows and macOS users may need to adjust some commands.

Installation

1

Download the repository

Clone or download the repository from GitHub:
# Clone with git
git clone <repository-url>

# Or download as ZIP
# Navigate to the repository on GitHub
# Click "Code" > "Download ZIP"
# Extract the ZIP file to your desired location
Navigate to the project directory:
cd grupo-de-anda
2

Install Python and VS Code

Download and install the required software:Python 3.11.14:
  • Visit https://www.python.org/
  • Download Python 3.11.14 or Python 3.13.x
  • Follow the installation instructions for your operating system
Visual Studio Code:
For detailed installation instructions, watch this setup tutorial.
3

Create a virtual environment (Ubuntu users)

Ubuntu users: Creating a virtual environment is critical to avoid breaking system Python packages. Ubuntu’s system code relies on Python, and installing libraries globally can cause system instability.
Create and activate a virtual environment:
# Navigate to your project directory
cd /path/to/grupo-de-anda

# Create virtual environment
python3 -m venv .venv

# Activate the virtual environment
# On Linux/macOS:
source .venv/bin/activate

# On Windows PowerShell:
# .venv\Scripts\Activate.ps1

# On Windows Command Prompt:
# .venv\Scripts\activate.bat
You should see (.venv) prefix in your terminal prompt, indicating the virtual environment is active.To deactivate later:
deactivate
4

Install Python dependencies

With your virtual environment activated, install the core dependencies:
pip install --upgrade pip
For AI/ML projects (includes PyTorch with CPU support):
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install transformers datasets peft accelerate
For general projects (GUI apps, voice assistants, utilities):
pip install customtkinter keyboard gpt4all requests llama-cpp-python
pip install gTTS pygame torch librosa numpy sounddevice pydub
Install only the libraries needed for your specific project to save time and disk space. Check each project’s imports to determine requirements.
5

Configure API keys (if needed)

Some projects require API keys for external services:Google Gemini API (for AI assistant projects):
# In proyectos/ai creator/asistantkamutini.py
API_KEY_GEMINI = "your-api-key-here"
Google Search API (for search functionality):
  • Obtain a Google Custom Search API key
  • Get a Search Engine ID
  • Configure in the project:
API_KEY_GOOGLE_SEARCH = "your-search-api-key"
SEARCH_ENGINE_ID = "your-search-engine-id"
Google Text-to-Speech (gTTS):

Running your first project

Run the AI assistant with Google Gemini integration:
cd proyectos/"ai creator"
python asistantkamutini.py
What it does:
  • Voice-based AI assistant
  • Uses Google Gemini for conversational AI
  • Text-to-speech responses with gTTS
  • Web search integration
  • Intent detection
Make sure you’ve configured your API_KEY_GEMINI before running this project.

Running projects in VS Code

Once you have a project open in Visual Studio Code:
  1. Open the Python file you want to run (e.g., inicio.py, asistantkamutini.py)
  2. Press F5 to run the program with debugging
  3. Or use the terminal:
    python filename.py
    
Some programs open a GUI window, while others run in the terminal. Check the project’s code to understand its interface.

Arduino/Hardware projects

For hardware projects in proyectos hadwere/arduino nano/:
1

Install Arduino IDE

Download and install the Arduino IDE:
2

Open the .ino file

Navigate to the hardware project:
cd "proyectos hadwere/arduino nano/lampara_solar/v2"
Open codigo.ino in the Arduino IDE.
3

Configure and upload

  1. Select your board: Tools > Board > Arduino Nano
  2. Select the processor: Tools > Processor > ATmega328P (or your variant)
  3. Select the port: Tools > Port > [Your Arduino Port]
  4. Click Upload (→ button) to flash the code to your Arduino

Understanding AI commands

The AI Creator project includes custom commands for the voice assistant:
CommandFormatDescription
Searchsearch=[topic]AI researches a topic on the internet
Weatherclma=[location]AI retrieves weather for a specific location
Locationubicacion=[]Provides location data to the AI
Intent detection categories:
  • investigar (research)
  • clima (weather)
  • conversacion_ai (AI conversation)

Troubleshooting

If you see ModuleNotFoundError: No module named 'xxx':
# Make sure your virtual environment is activated
source .venv/bin/activate

# Install the missing package
pip install xxx
You’re trying to modify system Python packages. Always use a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip install [packages]
If projects fail with API authentication errors:
  1. Check that you’ve added your API key to the Python file
  2. Ensure the API key is valid and not expired
  3. Verify you have internet connectivity
  4. Check API usage limits/quotas
To check if PyTorch detects your GPU:
import torch
print(torch.cuda.is_available())  # Should print True if CUDA is available
print(torch.cuda.device_count())  # Number of GPUs
For CPU-only installation:
pip install torch --index-url https://download.pytorch.org/whl/cpu
For CUDA 12.1:
pip install torch --index-url https://download.pytorch.org/whl/cu121
Common Arduino issues:
  1. Wrong port selected: Check Tools > Port and select the correct USB port
  2. Board not recognized: Install CH340 drivers if using clone boards
  3. Bootloader issue: Try holding reset while uploading
  4. Processor mismatch: Verify your Arduino Nano variant (ATmega328P vs ATmega328P Old Bootloader)

Next steps

Now that you’re set up:

Explore projects

Browse detailed documentation for each project

API references

Learn about the APIs and libraries used

Hardware guides

Circuit diagrams and hardware setup guides

Development guides

Learn how to set up your development environment

Having issues? Remember that this code is designed for Ubuntu with Python 3.11/3.13. Adjust paths and commands for your operating system.

Build docs developers (and LLMs) love