Skip to main content
STAR Protocols logoLink to STAR Protocols
. 2021 Sep 17;2(4):100827. doi: 10.1016/j.xpro.2021.100827

Protocol for Drosophila sleep deprivation using single-chip board

Xi Jin 1, Pengyu Gu 1, Junhai Han 1,2,3,
PMCID: PMC8456114  PMID: 34585161

Summary

Sleep behavior is characterized by long-term quiescence and increased arousal threshold, and it is homeostatically regulated. The sleep rebound after deprivation is utilized to verify the abilities to maintain homeostasis. This protocol shows how to build a programmed mechanic oscillation system and detailed procedures to conduct sleep deprivation in Drosophila. This deprivation system is featured by its programming flexibility. The knowledge of electronic circuits and a certain level of programming are both required to fulfill this protocol.

For complete details on the use and execution of this protocol, please refer to Jin et al. (2021).

Subject areas: Bioinformatics, Biophysics, Model Organisms, Neuroscience, Cognitive Neuroscience, Behavior, Physics, Computer sciences

Graphical abstract

graphic file with name fx1.jpg

Highlights

  • The retrofitted oscillator is controlled by a pseudo-random trigger signal

  • A programmable single-chip board enables system flexibility

  • The modular design simplifies debugging and maintenance


Sleep behavior is characterized by long-term quiescence and increased arousal threshold, and it is homeostatically regulated. The sleep rebound after deprivation is utilized to verify the abilities to maintain homeostasis. This protocol shows how to build a programmed mechanic oscillation system and detailed procedures to conduct sleep deprivation in Drosophila. This deprivation system is featured by its programming flexibility. The knowledge of electronic circuits and a certain level of programming are both required to fulfill this protocol.

Before you begin

The single-chip computer board is used in this protocol but the control logic of mechanic oscillation is applicable. Other microcomputers may be potentially capable to fulfill a similar function as well. Here we demonstrated the function of this system in a verified oscillation mode for parameter setting: randomly oscillate for 10 s continuously within approximately 3 min.

Preparation of single-chip control board

Inline graphicTiming: 1 h if no programming is required.

  • 1.

    Select and purchase a single-chip control board. (Figure 1)

Inline graphicCRITICAL: In this case, we recommend the single-chip based control board provided by Shenzhen DXD Technology Company at Alibaba.com which is shown in Figure 1. The built-in chip model is STC11F04E which supports C language programming and facilitates the construction of pseudo-random processes. The STC chip embedded control board is characterized by high speed, low power consumption, low price, and easy to erase and write programs compared to 8051 chip. The relay outputs are integrated into this board, so the step of soldering the relays on the control board is eliminated.

Figure 1.

Figure 1

Single-chip control board

The left is the simulation diagram and the right is the physical diagram. The DC power is connected to the VCC and the GND which are on the top of the board. These five input pins IN1 to IN5 are next to the GND pin. The program is downloaded to the board through the GND, T, R, and +5V pins on the left of the board. The ER1 to ER4 are the relays that are embedded on the bottom of the board. Each embedded relay contains a CK pin which normally opens, a COM pin, and CB pin which normally closes. The GND, T (for TXD), R (for RXD), and +5V on the left of the board are the TTL ports to connect the USB-TTL downloader.

Product Website: https://www.alibaba.com/product-detail/module-51-single-chip-control-four_1600102543788.html?spm=a2700.galleryofferlist.normal_offer.d_title.31ae2456Dw9drY

Note: If there is a programming requirement, please see the datasheets of the STC11F04E chip: https://www.stcmcudata.com/datasheet/stc/STC-AD-PDF/STC11F-10Fxx-english.pdf

It takes a certain amount of time to mastery the programming on the single-chip control board. One or two days are required for those who are familiar with the C language.

Preparation of an oscillator

Inline graphicTiming: 1 h

  • 2.

    Select and purchase an oscillator.

Inline graphicCRITICAL: The top panel size of the oscillator is at least 18 cm wide and 30 cm long to contain four DAM2 monitors. The power or speed of the oscillator must be adjustable and the max speed which exceeds 2000 rpm is required. The start and the stop mode of the oscillator require special attention. The start button and the stop button should be the same button. Press it once and the machine will start, and press it again and the oscillation will stop (See Figure 2A and Methods video S1).

Figure 2.

Figure 2

Schematic diagram of the retrofitted oscillator

(A) The vortexer is placed in the artificial climate box above the shock-absorbing sponge. The sponge is also placed inside the shock stage to protect the monitors from metal collision wear. The microswitch of START/STOP is behind the control panel as indicated by the red dotted frame.

(B) The plastic layer indicating the button is peeled off, and the screw positions are exposed.

(C) Remove the screws and the control panel can be displayed. The two contralateral pins of the microswitch are soldered with wires as indicated by the white arrow, (Also see Methods video S1 and S2)

Methods video S1. The start and stop modes of the oscillator required in our protocols, related to step 2 in before you begin and step 3 in step-by-step method details

The start button and the stop button should be the same button. Press it once and the machine will start, and press it again and the oscillation will stop.

Download video file (12.3MB, mp4)

Links to products: https://www.amazon.com/gp/product/B01LXLQ9XK/ref=ox_sc_act_title_1?smid=A1M3WKYNBDGSR1&psc=1

https://www.alibaba.com/product-detail/DMT-2500-Multi-Tube-Vortexer-500_60509614553.html?spm=a2700.galleryofferlist.normal_offer.d_image.1d853c88GQegdD

Preparation of fruit flies

Inline graphicTiming: 1 h

  • 3.
    Fly husbandry and harvest
    • a.
      Raise the fly on yeast-based food at 25°C in 12h light/dark cycles unless special treatment.
    • b.
      Keep the ambient relative humidity at 60% as much as possible.
    • c.
      The flies are collected after emerging from the pupas.

Note: The selection of the flies is according to experimental purpose. For example, when exploring the relevance between age and sleep homeostasis in Drosophila, it is necessary to select fruit flies of different ages in groups. When exploring the relationship between immunity and sleep homeostasis, it may be necessary to select the fruit flies after infection treatment. Different researchers may prefer to use female flies or male flies for sleep deprivation experiments. Here, male fruit flies about 3-day to 7-day old are subjected to sleep deprivation experiments.

Key resources table

REAGENT or RESOURCE SOURCE IDENTIFIER
Chemicals, peptides, and recombinant proteins

Sucrose Sigma CAS#57-50-1
Agar Sangon Biotech CAS#9002-18-0

Experimental models: Organisms/strains

Drosophila: w1118 Bloomington Drosophila Stock Center RRID:BDSC_3605

Software and algorithms

SCAMP (Nathan et al., 2012) https://www.trikinetics.com/ N/A
KeilC51Vcngr https://www.keil.com/c51/c51.asp N/A
STC-ISP This protocol https://drive.google.com/file/d/12JQxDPH8DDJB2-_b3kuTnbSA-6T7Jlie/view?usp=sharing N/A
CH340 driver This protocol https://drive.google.com/file/d/12JQxDPH8DDJB2-_b3kuTnbSA-6T7Jlie/view?usp=sharing N/A
MATLAB R2018b MathWorks RRID: SCR_001622

Deposited data

Program code for the single-chip board (Jin et al., 2021) https://drive.google.com/drive/folders/1NhXpLkspr3mN014Ea5_oZ0JJ6yVOckyq?usp=sharing

Other

Multi-tube vortexer https://www.amazon.com/gp/product/B01LXLQ9XK/ref=ox_sc_act_title_1?smid=A1M3WKYNBDGSR1&psc=1 Cat# DMT-2500
Single-chip control board https://www.alibaba.com/product-detail/module-51-single-chip-control-four_1600102543788.html?spm=a2700.galleryofferlist.normal_offer.d_title.31ae2456Dw9drY Chip model: STC11F04E
Relay control module https://www.amazon.com/gp/product/B074TBRRTY/ref=ox_sc_act_title_1?smid=A25LEPIYFTQZF2&psc=1 N/A
Automatic STC Downloader https://www.amazon.com/gp/product/B094WZLM94/ref=ox_sc_act_title_1?smid=A1U4I2CCV7K16T&psc=1 N/A
Artificial climate box https://www.alibaba.com/product-detail/laboratory-microbiology-incubator-precision-artificial-climate_1600102685786.html?spm=a2700.galleryofferlist.normal_offer.d_title.470c681d5MDsVs Cat# GPL-450A
DAM2 Drosophila Activity Monitor https://www.trikinetics.com/ Cat#DAM2
PSIU9 Power Supply Interface Unit https://www.trikinetics.com/ Cat#PSIU9
Cables For DAM2 Sleep System https://www.trikinetics.com/ Cat#CAB2
Connectors For DAM2 Sleep System https://www.trikinetics.com/ Cat#SPLT5
Glass tubes https://www.trikinetics.com/ Cat#PPT5x65

Materials and equipment

Fly food for sleep analyses

Reagent Final concentration Amount
Agar 1.5% 2.25g
Sucrose 5% 7.5g
ddH2O n/a Up to 150mL
Total n/a 150mL

Store at 4°C for up to one week.

Inline graphicCRITICAL: Extra 30mL ddH2O should be added at the beginning and the mixed reagents are boiled into homogeneous liquid by the microwave and the liquid should be evaporated to 150mL remains. Take care to prevent being scalded by liquid and steam.

Alternatives: This formula is relatively deficient in amino acids but it is simple and widely used(Kuo and Williams, 2014; Robinson et al., 2016; Donlea et al., 2018; Liu et al., 2019; Toda et al., 2019). The amino acids are supplemented by the proliferation of the yeast which is carried by the fruit fly itself(Anagnostou et al., 2010; Ganter, 1988). The standard fly food is also widely used for sleep behavior analyses(Stahl et al., 2018; Brown et al., 2020). The standard food contains the protein source and a more complex source of carbohydrates. The BDSC Standard Cornmeal Medium is recommended.

Website: https://bdsc.indiana.edu/information/recipes/bloomfood.html

Alternatives: SCAMP can also be found on the Vecsey Lab’s website

Website: https://academics.skidmore.edu/blogs/cvecsey/

Alternatives: Multi-tube vortexers with the same start/end mode are suitable for this protocol. The alternative product website: https://www.alibaba.com/product-detail/DMT-2500-Multi-Tube-Vortexer-500_60509614553.html?spm=a2700.galleryofferlist.normal_offer.d_image.1d853c88GQegdD

Step-by-step method details

Download the program code into the single-chip control board

Inline graphicTiming: 4 h for those who are familiar with programming

The single-chip control board is programmable. We provide the verified program code which is easy to download into the single-chip control board. We also provide annotations and instructions next to the program code in the file “Program.C” for changing the parameters if necessary.

The program file ”Program.C” and ”Program.hex”, the CH340 driver, the STC-ISP software, and a readme text are provided in a shared network disk.

Website: https://drive.google.com/drive/folders/1NhXpLkspr3mN014Ea5_oZ0JJ6yVOckyq?usp=sharing

  • 1.
    Program on the single-chip control board.
    • a.
      Install the KeilC51Vcngr for the code compiler.
    • b.
      Open the programming interface of KeilC51Vcngr.
    • c.
      Open the file named “Program.C” by the KeilC51Vcngr software. Change the program code or adjust the parameters according to annotations if necessary.
    • d.
      Save the program code and generate a new HEX file.

Note: Please refer to the help documentation of the KeilC51Vcngr and the readme text we provided for more detailed instructions. If there is no need to change the program code, this step can be omitted.

Note: For the sleep deprivation conducted by mechanical oscillation, to avoid mechanical damage as much as possible, the key principle is to use the smallest intensity and frequency of oscillations to achieve the maximum degree of sleep deprivation. In Drosophila, quiescence for 5 min or longer is proved and defined as a sleep episode (Shaw et al., 2000; Hendricks et al., 2000; Nitz et al., 2002). Therefore, the interval between two shocks should be close to or less than 5 min to ensure that the sleep behavior is effectively disturbed. We utilize the single-chip control board to implement a pseudo-random process: after triggering signal input, it randomly selects a time point in a 170-s interval and activates the electromagnetic relay which is embedded on the board for 10 s, and then switches it off. This process allows the oscillator to randomly select a time point in each 3-minute interval to oscillate once (we name this interval as a random event interval). Therefore, the maximum interval between oscillation events is 6 min. This pseudo-random process could be easily adjusted by changing the parameters of the program code according to the annotations we provide. As far as we tested, it seems unnecessary to shorten this random event interval, because the deprivation efficiency of the 3-minute interval is sufficient. If this random event interval is extended, the deprivation efficiency will be reduced accordingly.

  • 2.
    Download the program code (HEX file) into the single-chip control board. (Figure 3) (Also see troubleshooting 1)
    • a.
      Purchase a USB-TTL Automatic STC Downloader with cables.
    • b.
      Install the CH340 driver for the Downloader we provide in the shared network disk.
    • c.
      Install the STC-ISP which is provided by STC microTM for program download.
    • d.
      Connect the USB port to the computer.
    • e.
      The TTL port contains four cables, the four cables DND, RXD, TXD, and 5V should be connected to the downloader and the control board respectively.
    • f.
      Open the STC-ISP software and choose the English interface
    • g.
      Click the check button to make the computer determine the chip model of the single-chip microcomputer
    • h.
      Open the file ”Program.hex” through the STC-ISP software.
    • i.
      Download the program into the single-chip based control board.
    • j.
      Disconnect the USB port and the TTL port.

Inline graphicCRITICAL: If a suitable downloader is purchased, this step will be relatively easy, no additional operations are required, just install the software, connect the wires and execute commands. Therefore, we recommend the Automatic STC Downloader which is easy to use.

Figure 3.

Figure 3

Download the program code into Single-chip control board

(A) The TTL ports on the control board are connected to the USB-TTL downloader.

(B) The USB-TTL downloader with the diagram for wiring the pins. The GND pin of the board is connected to the GND①, the T pin of the board is connected to the TXD⑤, the R pin of the board is connected to the RXD③ and the +5V pin of the board is connected to the +5V⑦ respectively.

(C) The software interface and the brief steps of the STC-ISP. Step 1, Scan, let the computer recognize the downloader. Step 2, Check MCU, let the software recognize the chip model of the control board, the prompt will present if successful. Step 3, Open Code File, open the “Program.hex”. Step 4, Download/Program, download the program into the control board, the prompt will present if successful.

Link to the product: https://www.amazon.com/gp/product/B094WZLM94/ref=ox_sc_act_title_1?smid=A1U4I2CCV7K16T&psc=1

Note: In this case, only the IN1 input pin and the ER2 output pin are used according to our program.

Lead the control lines from the oscillator

Inline graphicTiming: 4 h for those who are familiar with Circuits

  • 3.

    Retrofit the oscillator. (Figure 2, also see Methods video S1 and S2)

    Note: In order that the oscillator can be safely controlled by an external control module, the only refit we conduct is to solder two wires on the pins of a microswitch inside the machine. It has not changed any circuits inside this machine. The working voltage of the microswitch inside the control panel is 5V and the current is 2 mA. The working voltage of the control module is 12V and the current is less than 300 mA.
    • a.
      Disassemble the control panel of the oscillator to find the microswitch that controls the start. Figure 2C
    • b.
      Solder a 30 cm wire to each of any two contralateral pins of the microswitch and lead the two wires out of the oscillator. The two wires are named control line 1 and control line 2. Figure 2A
    • c.
      Reassemble the oscillator well and confirm it could work normally after power on. (Methods video S1)
    • d.
      Test the lead wires from two contralateral pins. After the oscillator is energized, the oscillator should start working after control line 1 and control line 2 connect once and continue working after disconnection, and the oscillator should stop after control line 1 and control line 2 connected once again and keep in standby mode after disconnection. (Methods video S2)
    Methods video S2. The control mode is conducted by the control lines from two contralateral pins of the start/stop button, related to step 3 in step-by-step method details
    After the oscillator is energized, the oscillator should start working after control lines connected once and continue working after disconnection, and the oscillator should stop after control lines are connected once again.
    Download video file (8.1MB, mp4)

Note: This control mode is important for the following control logic design and circuit connection, please do not change it.

  • 4.
    Place the oscillator in the artificial climate box. (Figure 2A)
    • a.
      Place the shock-absorbing sponge under the oscillator to reduce the transmission of mechanical shock.
    • b.
      Put the oscillator into the artificial climate box and test whether the oscillator can operate normally at proper speed after power on.
    • c.
      Fix the control lines with tapes and lead the control lines out of the climate box.

Construction of the single-chip board and relay board joint control module

Inline graphicTiming: 4 h for those who are familiar with circuits.

The single-chip board and the three single relay boards are worked jointly which need to be connected properly. The three single relay boards are named Relay 1, Relay 2, and Relay 3 respectively. The modular design is applied in this system to simplify the operation of the program, debugging, and maintenance. Each part of the joint control module realizes a single function which easy to adjust according to certain users. Relay 1 periodically sends out high-level signals to the single-chip board and therefore controls the cycle length of the whole system. The cycle length could be adjusted by changing the parameters of Relay 1.

The single-chip board is responsible for generating stochastic signals. When the signal is triggered, the single-chip microcomputer selects a time point randomly to send a high-level signal within a given time period. The given time period could be adjusted by changing the program code with the help of the annotations we provide.

Relay 2 receives the high-level signal from the single-chip board and starts the oscillation immediately by connecting the control line1 and line 2 once.

Relay 3 receives the high-level signal from the single-chip board at the same time as Relay 2. The oscillation continues until the Relay 3 timer expires and connects the control line1 and line 2 again. Therefore, Eelay 3 controls the duration of continuous oscillation and it could be adjusted by changing the parameters of Relay 1.

The link of the product: https://www.amazon.com/gp/product/B074TBRRTY/ref=ox_sc_act_title_1?smid=A25LEPIYFTQZF2&psc=1

https://www.alibaba.com/product-detail/DC-6V-30V-Trigger-Delay-On_60784456751.html?spm=a2700.galleryofferlist.normal_offer.d_title.3b3d1f0fXXgVMl

See Figures 4 and 5. Please see the troubleshooting 2, 3, and 4 to understand the rationale.

  • 5.
    Connect the single-chip board and the relay board module according to Figures 5 and 6
    • a.
      Power supply. The NIV pins of relay boards and the VCC pin of the single-chip board are all connected to the +12 V pin of the 12 V DC power supply. The GND pins next to the NIV of the relay boards are all connected to the COM pin of the DC power supply. The GND pin next to the VCC pins of the single-chip board is connected to the COM pin of the DC power supply. (Figure 6A)
    • b.
      Relay 1. The NO pin of Relay 1 is connected to the IN1 pin of the single-chip board. The COM pin of Relay 1 is connected to the +12 V pin of the 12 V DC power supply. (Figure 6B)
    • c.
      Single-chip board. The CK pin of ER2 in the single-chip board is connected to the T pin of Relay 2. The COM pin of ER2 in the single-chip board is connected to the +12 V pin of the 12 V DC power supply. (Figure 6C)
    • d.
      Single-chip board. The CK pin of ER2 in the single-chip board is connected to the T pin of Relay 3. The COM pin of ER2 in the single-chip board is connected to the +12 V pin of the 12 V DC power supply. (Figure 6D)
    • e.
      Relay 2. The GND-T pin next to the T pin of Relay 2 is connected to the GND pin of the Relay 2 (Figure 6C). The NO pin and the COM pin of Relay 2 are named Output1 and are connected to control line 1 and line 2 respectively. (Figure 6E)
    • f.
      Relay 3. The GND-T pin next to the T pin of Relay 3 is connected to the GND pin of the Relay 3 (Figure 6D)The NO pin and the COM pin of Relay 3 are named as Output2 and are connected to control line 1 and line 2 respectively. (Figure 6E)
  • 6.
    Set the operating parameters of the relay boards.
    Note: The built-in programs of relay boards are controlled by three parameters which are CL (on time), OP (off time), and LOP (cycle times). The supplier provides detailed instructions on how to set the parameters. Here, CL1, OP1, and LOP1 refer to the CL, OP, and LOP parameters of Relay 1 respectively. OP2 refers to the OP parameter of Relay 2. CL3 and OP3 refer to the CL, OP parameters of Relay 3 respectively.
    • a.
      Set the Relay 1 to program 3.2, the CL1 = 195 s, the OP1 = 2 s, and the LOP1 is set as infinite. The embedded relay is closed for 2 s every 197 s consequently.
    • b.
      Set the Relay 2 to program 1.1, the OP2 = 1 s. No other parameters are needed to be set. The embedded relay is closed for 1 s after trigger signal input consequently.
    • c.
      Set the Relay 3 to program 2, the CL3 = 10 s, the OP3 = 1 s. Consequently, after the 10 s delay, the embedded relay is closed for 1 s after trigger signal input.

Note: The single-chip board contains five inputs: IN1-IN5. There are four relay boards embedded in the single-chip board which contains CB, CK, and COM pins. According to the program we downloaded to the board, the IN1 pin, the CK pin, and COM pin of ER2 are chosen as the input and the output ports respectively in this case.

Figure 4.

Figure 4

The diagram of the relay

The left is the simulation diagram and the right is the physical diagram. The DC power is connected to the VIN pin and the GND pin which are on the upper left of the board. The relay on the right is controlled by the embedded programs. The outputs of the relay are NO pin which normally opens, COM pin, and NC pin which normally closes. The trigger signal inputs via T pin and GND-T pin which are on the lower left of the panel. The parameter setting of embedded programs is through the Operation buttons on the bottom of the board. For more details, please refer to the product link.

Figure 5.

Figure 5

The diagram of the joint control module

Relay 1 controls the length of the time interval for oscillating through the input trigger signal to the single-chip board. The single-chip board is responsible for generating stochastic signals. The generated stochastic signal is transmitted both to Relay 2 and Relay 3. Relay 2 controls the start of the oscillation event. Relay 3 controls the duration of the oscillation event.

Figure 6.

Figure 6

Step-by-step circuit connections

From top to bottom are Relay 3, Relay 2, Relay 1, and the single-chip control board respectively. Overall, in terms of circuit principle, the red wires are connected to high voltage; the black wires are connected to the COM pins except for Output1 and Output 2 are connected to the control lines. (A) Power supply. The NIV pins of relay boards and the VCC pin of the single-chip board are all connected to the +12 V pin of the 12 V DC power supply. The GND pins next to the NIV of the relay boards are all connected to the COM pin of the DC power supply. The GND pin next to the VCC pins of the single-chip board is connected to the COM pin of the DC power supply. (B) Relay 1. The NO pin of Relay 1 is connected to the IN1 pin of the single-chip board. The COM pin of Relay 1 is connected to the +12 V pin of the 12 V DC power supply. (C-D) Single-chip board. The CK pin of ER2 in the single-chip board is connected to the T pin of Relay 2. The COM pin of ER2 in the single-chip board is connected to the +12 V pin of the 12 V DC power supply. The CK pin of ER2 in the single-chip board is connected to the T pin of Relay 3. The COM pin of ER2 in the single-chip board is connected to the +12 V pin of the 12 V DC power supply. (E) Relay 2 and Relay 3. The GND-T pin next to the T pin of Relay 2 is connected to the GND pin of the Relay 2. The NO pin and the COM pin of Relay 2 are named Output1 and are connected to control line 1 and line 2 respectively. The GND-T pin next to the T pin of Relay 3 is connected to the GND pin of the Relay 3. The NO pin and the COM pin of Relay 3 are named as Output2 and are connected to control line 1 and line 2 respectively.

Drosophila sleep deprivation

Inline graphicTiming: 3 days

The DAM2 system is used to record the efficiency of sleep deprivation and the SCAMP (Nathan et al., 2012) is used to conduct the data analyses. The power of DAM2 is supplied by the PSIU9 Interface Unit and the sleep data is uploaded by Cables and Connectors as mentioned in the resource table. The flies need to be prepared ahead as mentioned above. The selected flies are loaded to the DAM2 system and fixed on the oscillator to conduct the sleep deprivation.

  • 7.
    Preparation of glass tubes for monitoring. See Figure 7A.
    Note: Contaminants usually adhere to the newly purchased glass tubes. Boil and wash the glass tube in ddH2O to reduce the adhesion of contaminants. Finally, atmospheric pressure is utilized to fill the food into the glass tube
    • a.
      Place the glass tubes in a beaker and boil for 5–10 min in ddH2O. Clean the glass tube once with ddH2O.
    • b.
      Bundle the clean glass tubes with rubber bands, rinse the inside of the glass tubes with ddH2O for 4 min, and dry it in an oven.
    • c.
      Use ddH2O to prepare 150mL food solution with a final concentration of 5% sucrose and 1.5% agar as mentioned above.
    • d.
      Pour the prepared food solution into a clean petri dish with 10 cm in diameter and 1.5 cm in depth. Quickly and stably put the bundled glass tube vertically into the petri dish, and wait for the food to cool and solidify. Under atmospheric pressure, the food liquid will enter the glass tube about 1.5 cm.
    • e.
      Take out the monitoring tube from the petri dish, wipe off the remaining food on the outer wall of the monitoring tube, and seal the food end with a plastic plug.
  • 8.
    Load the flies into the monitoring tubes. See Figures 7B and 7C
    • a.
      Anesthetize fruit flies with carbon dioxide.
    • b.
      Use a brush to move the fruit flies into the monitoring tube (one fruit fly per monitoring tube).
    • c.
      Insert the monitoring tube containing the fruit fly into the monitoring board, and seal the non-food end with a perforated plastic plug (or cotton plug).
    • d.
      Align the middle of the monitoring tube (the part without food) at the infrared detector of the monitoring board, and fix the monitoring tube with rubber bands.
  • 9.
    Sleep deprivation. See Figure 7D and see troubleshooting 5 and 6
    • a.
      Set the temperature, humidity, and time parameters of the artificial climate box.
    • b.
      Put and fix the monitoring boards in the oscillator which is inside the artificial climate box as described above.
    • c.
      Connect the monitoring boards to the data collection system and set the data collection interval to 1 min.
    • d.
      According to the experimental requirements, select the appropriate time point,
    • e.
      Turn on the power of the oscillator and maintain it in a standby state.
    • f.
      Turn on the power of the joint control module at the chosen time of the experimental requirement and the sleep deprivation experiment begins to perform.

Note: Common experimental paradigms are as follows. The Zeitgeber time (ZT) was defined as ZT0 with lights on and ZT12 with lights off, so the flies are under a cycle of 12 h of light/12 h of darkness. The whole night deprivation is performed. Firstly, record the baseline of sleep behavior without oscillation. Then perform the sleep deprivation at ZT12 on the second day. Next, conduct the third day record of sleep behavior without oscillation to evaluate the sleep rebound.

Note: There are multiple ways to analyze the data generated by sleep deprivation experiments. In some researches, the sleep rebound was calculated as the difference in sleep between the day after sleep deprivation and the day before the deprivation at each ZT time(Toda et al., 2019) or each half hour (Sitaraman et al., 2015). In some other researches, the Individual sleep rebound is quantified every hour for 24 h by dividing the cumulative amount of regained sleep by the total amount of sleep lost during deprivation (Tong et al., 2016; Jin et al., 2021). Here, the latter method was used to present the results of the sleep deprivation experiment.

Figure 7.

Figure 7

Schematic diagrams for sleep deprivation

(A) The schematic diagram of a glass tube contains a fly.

(B) The glass tube is inserted into a monitor.

(C) Fix the monitoring tube with rubber bands.

(D) Fix the monitoring boards in the oscillator and connect the monitoring board to the data collection system.

Expected outcomes

The sleep amount is significantly reduced during sleep deprivation. Sleep loss is more than 80% after deprivation. See Figure 8 and see troubleshooting 5 and 6

Figure 8.

Figure 8

Sleep deprivation of w1118

The sleep behavior is continuously recorded for 3 days. Normal sleep on the first day is recorded as the baseline. Efficient sleep deprivation is performed on the night of the second day. The sleep rebound is recorded on the third day. The ratio of cumulative regained sleep compared to the total amount of sleep lost is demonstrated on the right. The random oscillation for 10 s continuously is within approximately 3 min.

(A) The horizontal axis represents the time. The light is turned on At ZT0 and turn off at ZT12. The vertical axis represents the sleep amount. The data point corresponding to every half hour represents the total sleep time within this 30 min. In simple terms, the area below the sleep curves reflects the sleep amount.

(B) The horizontal axis represents the time. Sleep is deprived from ZT12 to ZT0 which is indicated by the gray area. The vertical axis represents the percentage of accumulated sleep loss compared to baseline. The w1118 is utilized to conduct the sleep deprivation, n=47. Data are presented as means ± standard errors of the means (SEMs).

Quantification and statistical analysis

The data generated by DAM2 System is in txt format files which can be analyzed by multiple sleep analysis tools. The SCAMP(Nathan et al., 2012) whose interface is clear and simple is recommended.

Alternatives: It is also feasible to calculate sleep parameters through programming on MATLAB software (Qian et al., 2017; Vienne et al., 2016)

Limitations

The basic knowledge of electronic circuits and programming ability are both required which increases the difficulty for non-engineering background researchers. However, the verified program code we provide and the annotations next to the code could largely overcome the barriers of programming

The control logic of mechanic shock is applicable but the types of the microcomputer board on the market are too diverse. The program code needs to be optimized to suit different control boards.

There are multiple types of microcomputer embedded control modules. To our knowledge, some Programmable Logic Controller (PLC) control modules are potentially capable to generate random processes. FX Series PLCs from Mitsubishi Electric Corporation could generate the random number by RND instruction. This control module may also be suitable to generate pseudo-random processes, but it needs further verification.

Links to similar products: https://www.amazon.com/gp/product/B07R3X79X9/ref=ox_sc_act_title_1?smid=A1PQ66J882YM3A&psc=1

Troubleshooting

Problem 1

The USB-TTL Automatic STC Downloader doesn’t work as expected (step 1).

Potential solution

If the STC-ISP software doesn’t show the prompt of success, the connection of the cable needs to be adjusted. As shown in Figures 2A and 2B, under most circumstances, the T pin of the board is connected to the TXD⑤ and the R pin of the board is connected to the RXD③. If it doesn’t work, please connect the T pin of the board to RXD③ and the R pin of the board to the TXD⑤ respectively instead. This fault may be caused by the compatibility of products produced by different manufacturers, but this solution can be used to solve these issues.

Problem 2

The control module doesn’t work as expected (step 3).

Potential solution

Understand the control logic will strongly facilitate the troubleshooting. We discuss the control principle of this case in detail as follows. See Figure 9.

Figure 9.

Figure 9

Schematic diagram of the control logic

(A) The flow diagram of the whole system.

(B) The control logic of the joint control module.

As shown in Figure 9. Relay 1 controls the length of the time interval for oscillating events. The length of the time interval is CL1 + OP1 = 195 s + 2 s = 197 s, and the number of cycles LOP1 is set as infinite. At the 196th second of each cycle, the NO pin and the COM pin of Relay 1 are closed and input a high-level signal to the IN1 pin of the single-chip board.

The single-chip board is responsible for generating stochastic signals. The single-chip board is triggered after receiving the high-level signal from Relay 1. Within 170 s, a time point is randomly selected to close the COM and CK pins of the embedded relay for 10 s and release the COM and CK pins to the open state subsequently. The high-level signal generated by the close of the COM and CK pins is transmitted to Relay 2 and Relay 3 at the same time. The single-chip board returns to a standby state in 3 min after receiving the high-level signal from Relay 1 and restores to accept the next trigger signal.

Relay 2 controls the start of the oscillation event. Relay 2 is triggered after receiving the high-level signal from the single-chip board and immediately closes the NO pin and the COM pin for OP2 = 1 s. The control line 1 and control line 2 are therefore connected for OP2 = 1 s. Relay 2 enters the standby state after OP2 = 1 s and restores the NO pin and the COM pin to open state and therefore disconnected control line 1 and control line 2. The oscillator starts working.

Relay 3 controls the duration of the oscillation event. It is triggered after receiving the high-level signal from the single-chip board. After the trigger, Relay 3 begins timing for CL3 = 10 s. At the end of the timer, the NO pin and the COM pin of Relay 3 are closed for OP3 = 1 s to connect the control line 1 and control line 2 once and the oscillator stop working. After OP3 = 1 s, Relay 3 enters a standby state, and control line 1 and control line 2 are disconnected.

Logic errors need to avoid. CL1 and OP1 control the length of the time interval. It should be noted that when CL1 + OP1 is less than 3 min, a logic error will occur. If the experiment requires CL1 + OP1 to be less than 3 min, it can be realized by modifying the program code.

Logic errors need to avoid. CL3 controls the duration of the oscillation event by defining the time between the first and the second connection of control line 1 and control line 2. The OP2 is time for the first connection which needs to be less than CL3 or the logic error occurs.

Reasons for reduced randomness. If the experiment requires CL1 + OP1 to be longer, the system will inevitably not oscillate after the time of 170 s + CL3 and result in reduced randomness. It could also be fixed by reprograming the code and download it to the single-chip board. The inevitable non-oscillation time < (CL1+OP1) ∗ 10% is acceptable.

Problem 3

The control module doesn’t respond after power on. See Figure 6A, the damaged Relay 1 doesn’t work (step 3).

Potential solution

The service life of the relay board and the single-chip board are limited. Even the LC resonance powered by the initiation of the DC power supply seriously threatens the normal work of the control module. If the display of the module does not light up after the power on, it would be damaged. If the relay indicator is on but the relay does not make a sound when it is closed, it would be damaged as well. The control module should be placed to the isolated and radiating location where is 5cm far from the high-intensity magnetic field or the strong magnetic spikes. Replace the damaged part of the control module would be a straightforward way for routine maintenance.

Problem 4

The deprivation efficiency discords with expectations (step 3).

Potential solution

Too low speed of oscillation results in the failure of sleep deprivation. It mainly depends on the power of the oscillator. If the average sleep deprivation is below 80% of the night sleep amount, the speed of the oscillator should be increased. For the oscillator we use, 1300rpm is good. Please fix the monitors firmly in the oscillators as well.

Problem 5

The mortality of the flies is excessive after the deprivation (step 4).

Potential solution

Excessive speed may cause mechanical damage to the flies which increases mortality. Meanwhile, confirm the temperature and humidity parameters of the artificial climate box.

Problem 6

Individual variations after the sleep deprivation discord with expectations (step 4).

Potential solution

Normalize the culture condition of flies and check the single sleep trace of files. Those escaped flies and the impaired or dead flies should be excluded. Flies with low deprivation efficiency could be excluded if the purpose of the experiment is to verify the sleep rebound after sufficient deprivation (Donlea et al., 2014).

Resource availability

Lead contact

Junhai Han; junhaihan@seu.edu.cn

Materials availability

We did not generate any new materials

Acknowledgments

This work was supported by the National Natural Science Foundation of China (NSFC), China (31771171 to J.H.) and Shenzhen-Hong Kong Institute of Brain Science-Shenzhen Fundamental Research Institutions, China (NYKFKT2019004 to J.H.) We thank the Jing Hong Company, China (STC microTM) for providing driver software, STC-ISP download software, and the 51 chip datasheet. We thank Hai Shen-Hao Company at Taobao, China for helping with programming.

Author contributions

X.J. contributed to the protocol and writing of the manuscript. P.G. and J.H. edited the manuscript.

Declaration of interests

The authors declare no competing interests.

Footnotes

Supplemental information can be found online at https://doi.org/10.1016/j.xpro.2021.100827.

Data and code availability

The program code for the single-chip board is available on the website: https://drive.google.com/drive/folders/1NhXpLkspr3mN014Ea5_oZ0JJ6yVOckyq?usp=sharing.

References

  1. Anagnostou C., Dorsch M., Rohlfs M. Influence of dietary yeasts on Drosophila melanogaster life-history traits. Entomol. Exp. Appl. 2010;136:1–11. [Google Scholar]
  2. Brown E.B., Shah K.D., Faville R., Kottler B., Keene A.C. Drosophila insulin-like peptide 2 mediates dietary regulation of sleep intensity. PLoS Genet. 2020;16:e1008270. doi: 10.1371/journal.pgen.1008270. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Donlea J.M., Pimentel D., Miesenbock G. Neuronal machinery of sleep homeostasis in Drosophila. Neuron. 2014;81:860–872. doi: 10.1016/j.neuron.2013.12.013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Donlea J.M., Pimentel D., Talbot C.B., Kempf A., Omoto J.J., Hartenstein V., Miesenb CK G. Recurrent circuitry for balancing sleep need and sleep. Neuron. 2018;97:378–389. doi: 10.1016/j.neuron.2017.12.016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Ganter P.F. The vectoring of cactophilic yeasts by Drosophila. Oecologia. 1988;75:400–404. doi: 10.1007/BF00376943. [DOI] [PubMed] [Google Scholar]
  6. Hendricks J.C., Finn S.M., Panckeri K.A., Chavkin J., Williams J.A., Sehgal A., Pack A.I. Rest in Drosophila is a sleep-like state. Neuron. 2000;25:129–138. doi: 10.1016/s0896-6273(00)80877-6. [DOI] [PubMed] [Google Scholar]
  7. Jin X., Tian Y., Zhang Z.C., Gu P., Liu C., Han J. A subset of DN1p neurons integrates thermosensory inputs to promote wakefulness via CNMa signaling. Curr. Biol. 2021;31:2075–2087.e6. doi: 10.1016/j.cub.2021.02.048. [DOI] [PubMed] [Google Scholar]
  8. Kuo T.H., Williams J.A. Increased sleep promotes survival during a bacterial infection in Drosophila. Sleep. 2014;37:1077–1086. doi: 10.5665/sleep.3764. 1086A-1086D. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Liu C., Meng Z., Wiggin T.D., Yu J., Reed M.L., Guo F., Zhang Y., Rosbash M., Griffith L.C. A serotonin-modulated circuit controls sleep architecture to regulate cognitive function independent of total sleep in Drosophila. Curr. Biol. 2019;29:3635–3646. doi: 10.1016/j.cub.2019.08.079. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Nathan D., Kim E.Z., Slawson J.B., Vecsey C.G., Robert H., Griffith L.C., BRUNO V.S. High-resolution positional tracking for long-term analysis of Drosophila sleep and locomotion using the "Tracker" program. PLoS One. 2012;7:e37250. doi: 10.1371/journal.pone.0037250. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Nitz D.A., Van Swinderen B., Tononi G., Greenspan R.J. Electrophysiological correlates of rest and activity in Drosophila melanogaster. Curr. Biol. 2002;12:1934–1940. doi: 10.1016/s0960-9822(02)01300-3. [DOI] [PubMed] [Google Scholar]
  12. Qian Y., Cao Y., Deng B., Yang G., Li J., Xu R., Zhang D., Huang J., Rao Y. Sleep homeostasis regulated by 5HT2b receptor in a small subset of neurons in the dorsal fan-shaped body of drosophila. Elife. 2017;6:e26519. doi: 10.7554/eLife.26519. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Robinson J.E., Paluch J., Dickman D.K., Joiner W.J. ADAR-mediated RNA editing suppresses sleep by acting as a brake on glutamatergic synaptic plasticity. Nat. Commun. 2016;7:10512. doi: 10.1038/ncomms10512. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Shaw P.J., Cirelli C., Greenspan R.J., Tononi G. Correlates of sleep and waking in Drosophila melanogaster. Science. 2000;287:1834–1837. doi: 10.1126/science.287.5459.1834. [DOI] [PubMed] [Google Scholar]
  15. Sitaraman D., Aso Y., Jin X., Chen N., Felix M., Rubin G.M., Nitabach M.N. Propagation of homeostatic sleep signals by segregated synaptic microcircuits of the Drosophila mushroom body. Curr. Biol. 2015;25:2915–2927. doi: 10.1016/j.cub.2015.09.017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Stahl B.A., Peco E., Davla S., Murakami K., Moreno N.A.C., Van Meyel D.J., Keene A.C. The taurine transporter Eaat2 functions in ensheathing glia to modulate sleep and metabolic rate. Curr. Biol. 2018;28:3700–3708. doi: 10.1016/j.cub.2018.10.039. [DOI] [PubMed] [Google Scholar]
  17. Toda H., Williams J.A., Gulledge M., Sehgal A. A sleep-inducing gene, nemuri, links sleep and immune function in Drosophila. Science. 2019;363:509–515. doi: 10.1126/science.aat1650. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Tong H., Li Q., Zhang Z.C., Li Y., Han J. Neurexin regulates nighttime sleep by modulating synaptic transmission. Sci. Rep. 2016;6:38246. doi: 10.1038/srep38246. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Vienne J., Spann R., Guo F., Rosbash M. Age-related reduction of recovery sleep and arousal threshold in Drosophila. Sleep. 2016;39:1613–1624. doi: 10.5665/sleep.6032. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Methods video S1. The start and stop modes of the oscillator required in our protocols, related to step 2 in before you begin and step 3 in step-by-step method details

The start button and the stop button should be the same button. Press it once and the machine will start, and press it again and the oscillation will stop.

Download video file (12.3MB, mp4)
Methods video S2. The control mode is conducted by the control lines from two contralateral pins of the start/stop button, related to step 3 in step-by-step method details

After the oscillator is energized, the oscillator should start working after control lines connected once and continue working after disconnection, and the oscillator should stop after control lines are connected once again.

Download video file (8.1MB, mp4)

Data Availability Statement

The program code for the single-chip board is available on the website: https://drive.google.com/drive/folders/1NhXpLkspr3mN014Ea5_oZ0JJ6yVOckyq?usp=sharing.


Articles from STAR Protocols are provided here courtesy of Elsevier

RESOURCES